# Use Debian 12 slim as the base image FROM debian:12-slim # Set environment variable to avoid some interactive prompts ENV DEBIAN_FRONTEND=noninteractive # Install lighttpd and clean up apt cache RUN apt update && \ apt install -y --no-install-recommends lighttpd && \ # Expose the default lighttpd port EXPOSE 80 # Copy any custom config or website content if needed # COPY ./lighttpd.conf /etc/lighttpd/lighttpd.conf # COPY ./html /var/www/html # Start lighttpd in the foreground CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]