targo_lighttpd/Dockerfile

20 lines
555 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 custom config and website content
COPY ./lighttpd_targo.conf /etc/lighttpd/lighttpd.conf
COPY ./html /var/www/html
# Start lighttpd in the foreground
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]