targo_lighttpd/Dockerfile
2025-06-11 16:58:41 -04:00

22 lines
624 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 && \
apt clean && \
rm -rf /var/lib/apt/lists/*
# 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"]