summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 4d1daae873e77f1751171e04b1a692480a14327b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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