Initial commit
This commit is contained in:
commit
23849fc99c
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# 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"]
|
Loading…
Reference in New Issue
Block a user