2022-11-18 09:04:02 +00:00
|
|
|
FROM alpine:3.16.3
|
2022-12-28 18:48:40 +01:00
|
|
|
RUN apk add --update --no-cache lighttpd bash netcat-openbsd
|
2021-11-30 11:20:42 +01:00
|
|
|
|
|
|
|
|
RUN adduser -S www-data -G www-data
|
|
|
|
|
RUN rm -rf /etc/lighttpd/lighttpd.conf
|
|
|
|
|
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
|
|
|
|
|
RUN chmod +r -R /etc/lighttpd && \
|
2022-07-17 19:30:34 +02:00
|
|
|
chown www-data:www-data -R /var/www && \
|
|
|
|
|
chown www-data:www-data /etc/lighttpd/lighttpd.conf
|
2021-11-30 11:20:42 +01:00
|
|
|
|
|
|
|
|
COPY start.sh /
|
|
|
|
|
RUN chmod +x /start.sh
|
|
|
|
|
|
|
|
|
|
USER www-data
|
|
|
|
|
RUN mkdir -p /var/www/domaincheck/
|
|
|
|
|
ENTRYPOINT ["/start.sh"]
|
2022-08-25 15:06:23 +02:00
|
|
|
|
2022-10-06 22:34:10 +02:00
|
|
|
HEALTHCHECK CMD nc -z localhost $APACHE_PORT || exit 1
|