A non-root Docker container for lighttpd that also adds a mime-types.conf
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
502 B

FROM alpine:3.15.5
EXPOSE 8080
LABEL maintainer "me@jerryaldrichiii.com"
RUN apk add --no-cache lighttpd=1.4.64-r0
RUN chown -R lighttpd /var/log/lighttpd
RUN mkdir -p /etc/lighttpd/conf.d
USER lighttpd
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
COPY mime-types.conf /etc/lighttpd/mime-types.conf
# Copying as lighttpd so that a user's entrypoint can remove/overwrite it
COPY --chown=lighttpd index.html /srv/html/index.html
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]