FROM debian:bookworm-slim RUN apt-get update && \ apt-get install -y --no-install-recommends \ git \ ca-certificates \ cgit \ highlight \ lighttpd \ && rm -rf /var/lib/apt/lists/* RUN mkdir -p /var/www/html /git COPY cgitrc /etc/cgitrc COPY custom.css /var/www/html/custom.css COPY lighttpd.conf /etc/lighttpd/lighttpd.conf RUN chown -R www-data:www-data /var/www && \ chmod -R 755 /var/www EXPOSE 80 CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]