aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorTolmachev Igor <me@igorek.dev>2026-01-06 06:14:36 +0900
committerTolmachev Igor <me@igorek.dev>2026-01-06 06:14:36 +0900
commit86ffad6fa449cdd56f895eb8faff3ee72456f4ef (patch)
tree544c7bfaeee04647b37ae96e2c36bc7edd130c62 /Dockerfile
parentb496a47e394e0f65a20c91680935fb5cf3dd6ea5 (diff)
downloadcgit_material_docker-86ffad6fa449cdd56f895eb8faff3ee72456f4ef.tar.gz
cgit_material_docker-86ffad6fa449cdd56f895eb8faff3ee72456f4ef.zip
Add docker
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile28
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 @@
1FROM debian:latest AS cgit-build
2
3RUN apt-get update
4RUN apt-get install -y gcc make
5RUN apt-get install -y python3 python-is-python3
6RUN apt-get install -y libzip-dev libssl-dev
7
8WORKDIR /cgit
9COPY cgit /cgit
10COPY cgit.conf /cgit
11
12RUN make
13RUN make install
14
15COPY cgitrc /app
16COPY responsive/head.html /app/www/static
17COPY responsive/cgit.css /app/www/static
18
19FROM debian:latest AS cgit-run
20
21RUN apt-get update
22RUN apt-get install -y python3 python3-pygments lighttpd
23
24WORKDIR /app
25COPY --from=cgit-build /app /app
26COPY lighttpd.conf /app/lighttpd.conf
27
28CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"]