From 93c06e25648db0519566ea1d28dbb47156121837 Mon Sep 17 00:00:00 2001 From: Hampus Date: Thu, 6 Jan 2022 13:35:49 +0100 Subject: add cgit docker image files --- 40-start-fcgiwrap.sh | 2 ++ Dockerfile | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 40-start-fcgiwrap.sh create mode 100644 Dockerfile diff --git a/40-start-fcgiwrap.sh b/40-start-fcgiwrap.sh new file mode 100755 index 0000000..dcbf3b1 --- /dev/null +++ b/40-start-fcgiwrap.sh @@ -0,0 +1,2 @@ +#!/bin/sh +spawn-fcgi -s /run/fcgi.sock -U nginx /usr/sbin/fcgiwrap diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4d1daae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM nginx:latest + +USER root + +RUN apt-get update -y && apt-get install -y fcgiwrap git build-essential openssl libssl-dev libzip4 zlib1g-dev python3 python3-pip + +RUN python3 -m pip install pygments markdown + +WORKDIR / + +RUN git clone https://git.zx2c4.com/cgit + +WORKDIR /cgit + +RUN git submodule init +RUN git submodule update +RUN make + +VOLUME /etc/nginx /usr/share/nginx/html /etc/cgitrc /repos + +COPY 40-start-fcgiwrap.sh /docker-entrypoint.d + -- cgit v1.2.3-18-g5258