From 62af97acf1aa92eda881c754ae0cc6876d3a5ede Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Wed, 7 Jan 2026 02:56:17 +0900 Subject: Improve docker image structure --- Dockerfile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index df191eb..90114b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,17 +6,16 @@ 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 +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 -COPY responsive/syntax-material.py /app/lib/filters -COPY responsive/md2html /app/lib/filters/html-converters/md2html +COPY cgitrc /app/ +COPY filters/ /app/filters/ +COPY include/ /app/include/ +COPY www/ /app/www/ FROM debian:latest AS cgit-run @@ -25,7 +24,9 @@ RUN apt-get install -y python3 python3-pygments python3-markdown python3-docutil RUN apt-get install -y lighttpd WORKDIR /app -COPY --from=cgit-build /app /app -COPY lighttpd.conf /app/lighttpd.conf +COPY --from=cgit-build /app/ /app/ +COPY lighttpd.conf /app/ + +RUN mkdir /app/repos /app/about/ CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"] -- cgit v1.2.3