targo_lighttpd/Dockerfile
Nicolas 6e11a9cf38 Minor changes
removed cache clearing to avoid docker compose issues when building.
2025-06-12 11:52:38 -04:00

20 lines
571 B
Docker

# 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"]