diff options
| author | Tolmachev Igor <me@igorek.dev> | 2026-01-06 06:14:36 +0900 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2026-01-06 06:14:36 +0900 |
| commit | 86ffad6fa449cdd56f895eb8faff3ee72456f4ef (patch) | |
| tree | 544c7bfaeee04647b37ae96e2c36bc7edd130c62 /Dockerfile | |
| parent | b496a47e394e0f65a20c91680935fb5cf3dd6ea5 (diff) | |
| download | cgit_material_docker-86ffad6fa449cdd56f895eb8faff3ee72456f4ef.tar.gz cgit_material_docker-86ffad6fa449cdd56f895eb8faff3ee72456f4ef.zip | |
Add docker
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"] | ||
