diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..516f38a --- /dev/null +++ b/Dockerfile | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | FROM debian:latest AS cgit-build | ||
| 2 | |||
| 3 | RUN apt-get update | ||
| 4 | RUN apt-get install -y gcc make | ||
| 5 | RUN apt-get install -y python3 python-is-python3 | ||
| 6 | RUN apt-get install -y libzip-dev libssl-dev | ||
| 7 | |||
| 8 | WORKDIR /cgit | ||
| 9 | COPY cgit /cgit | ||
| 10 | COPY cgit.conf /cgit | ||
| 11 | |||
| 12 | RUN make | ||
| 13 | RUN make install | ||
| 14 | |||
| 15 | COPY cgitrc /app | ||
| 16 | COPY responsive/head.html /app/www/static | ||
| 17 | COPY responsive/cgit.css /app/www/static | ||
| 18 | |||
| 19 | FROM debian:latest AS cgit-run | ||
| 20 | |||
| 21 | RUN apt-get update | ||
| 22 | RUN apt-get install -y python3 python3-pygments lighttpd | ||
| 23 | |||
| 24 | WORKDIR /app | ||
| 25 | COPY --from=cgit-build /app /app | ||
| 26 | COPY lighttpd.conf /app/lighttpd.conf | ||
| 27 | |||
| 28 | CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"] | ||
