2023-03-30 12:59:29 +00:00
|
|
|
FROM alpine:3.17.3
|
2023-05-03 17:02:07 +02:00
|
|
|
RUN set -ex; \
|
|
|
|
|
apk add --no-cache bash lighttpd netcat-openbsd; \
|
2023-05-03 16:29:25 +02:00
|
|
|
adduser -S www-data -G www-data; \
|
|
|
|
|
rm -rf /etc/lighttpd/lighttpd.conf; \
|
2023-05-03 17:27:55 +02:00
|
|
|
chmod +r -R /etc/lighttpd; \
|
|
|
|
|
mkdir -p /var/www/domaincheck; \
|
|
|
|
|
chown www-data:www-data -R /var/www
|
2023-05-03 16:29:25 +02:00
|
|
|
COPY --chown=www-data:www-data lighttpd.conf /etc/lighttpd/lighttpd.conf
|
2021-11-30 11:20:42 +01:00
|
|
|
|
2023-05-03 16:29:25 +02:00
|
|
|
COPY --chmod=775 start.sh /start.sh
|
2021-11-30 11:20:42 +01:00
|
|
|
|
|
|
|
|
USER www-data
|
|
|
|
|
ENTRYPOINT ["/start.sh"]
|
2022-08-25 15:06:23 +02:00
|
|
|
|
2023-01-30 14:54:09 +01:00
|
|
|
HEALTHCHECK CMD nc -z localhost $APACHE_PORT || exit 1
|
2023-01-30 15:33:12 +01:00
|
|
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|