From 86ffad6fa449cdd56f895eb8faff3ee72456f4ef Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Tue, 6 Jan 2026 06:14:36 +0900 Subject: Add docker --- Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..516f38a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM debian:latest AS cgit-build + +RUN apt-get update +RUN apt-get install -y gcc make +RUN apt-get install -y python3 python-is-python3 +RUN apt-get install -y libzip-dev libssl-dev + +WORKDIR /cgit +COPY cgit /cgit +COPY cgit.conf /cgit + +RUN make +RUN make install + +COPY cgitrc /app +COPY responsive/head.html /app/www/static +COPY responsive/cgit.css /app/www/static + +FROM debian:latest AS cgit-run + +RUN apt-get update +RUN apt-get install -y python3 python3-pygments lighttpd + +WORKDIR /app +COPY --from=cgit-build /app /app +COPY lighttpd.conf /app/lighttpd.conf + +CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"] -- cgit v1.2.3