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