diff options
author | Hampus <hampus@hampusmat.com> | 2022-01-06 13:35:49 +0100 |
---|---|---|
committer | Hampus <hampus@hampusmat.com> | 2022-01-06 13:35:49 +0100 |
commit | 93c06e25648db0519566ea1d28dbb47156121837 (patch) | |
tree | 0e602c5db84afc1c08d099b18a741ead96190826 /Dockerfile | |
parent | 1893fc4827b54088608c2a51a08d3e376e2daeb9 (diff) |
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
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 + |