aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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"]