diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 19 |
1 files changed, 10 insertions, 9 deletions
| @@ -6,17 +6,16 @@ RUN apt-get install -y python3 python-is-python3 | |||
| 6 | RUN apt-get install -y libzip-dev libssl-dev | 6 | RUN apt-get install -y libzip-dev libssl-dev |
| 7 | 7 | ||
| 8 | WORKDIR /cgit | 8 | WORKDIR /cgit |
| 9 | COPY cgit /cgit | 9 | COPY cgit/ /cgit/ |
| 10 | COPY cgit.conf /cgit | 10 | COPY cgit.conf /cgit/ |
| 11 | 11 | ||
| 12 | RUN make | 12 | RUN make |
| 13 | RUN make install | 13 | RUN make install |
| 14 | 14 | ||
| 15 | COPY cgitrc /app | 15 | COPY cgitrc /app/ |
| 16 | COPY responsive/head.html /app/www/static | 16 | COPY filters/ /app/filters/ |
| 17 | COPY responsive/cgit.css /app/www/static | 17 | COPY include/ /app/include/ |
| 18 | COPY responsive/syntax-material.py /app/lib/filters | 18 | COPY www/ /app/www/ |
| 19 | COPY responsive/md2html /app/lib/filters/html-converters/md2html | ||
| 20 | 19 | ||
| 21 | FROM debian:latest AS cgit-run | 20 | FROM debian:latest AS cgit-run |
| 22 | 21 | ||
| @@ -25,7 +24,9 @@ RUN apt-get install -y python3 python3-pygments python3-markdown python3-docutil | |||
| 25 | RUN apt-get install -y lighttpd | 24 | RUN apt-get install -y lighttpd |
| 26 | 25 | ||
| 27 | WORKDIR /app | 26 | WORKDIR /app |
| 28 | COPY --from=cgit-build /app /app | 27 | COPY --from=cgit-build /app/ /app/ |
| 29 | COPY lighttpd.conf /app/lighttpd.conf | 28 | COPY lighttpd.conf /app/ |
| 29 | |||
| 30 | RUN mkdir /app/repos /app/about/ | ||
| 30 | 31 | ||
| 31 | CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"] | 32 | CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"] |
