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 filters/ /app/filters/ COPY include/ /app/include/ COPY www/ /app/www/ FROM debian:latest AS cgit-run RUN apt-get update RUN apt-get install -y python3 python3-pygments python3-markdown python3-docutils RUN apt-get install -y lighttpd WORKDIR /app COPY --from=cgit-build /app/ /app/ COPY lighttpd.conf /app/ RUN mkdir /app/repos /app/about/ CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"]