aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: df191eb147a8f86ecc5177f54d689737f3bf648b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM debian:latest AS cgit-build

RUN apt-get update
RUN apt-get install -y gcc make
RUN apt-get install -y python3 python-is-python3
RUN apt-get install -y libzip-dev libssl-dev

WORKDIR /cgit
COPY cgit /cgit
COPY cgit.conf /cgit

RUN make
RUN make install

COPY cgitrc /app
COPY responsive/head.html /app/www/static
COPY responsive/cgit.css /app/www/static
COPY responsive/syntax-material.py /app/lib/filters
COPY responsive/md2html /app/lib/filters/html-converters/md2html

FROM debian:latest AS cgit-run

RUN apt-get update
RUN apt-get install -y python3 python3-pygments python3-markdown python3-docutils
RUN apt-get install -y lighttpd

WORKDIR /app
COPY --from=cgit-build /app /app
COPY lighttpd.conf /app/lighttpd.conf

CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"]