2023-08-08 20:47:42 +08:00
|
|
|
FROM alpine:3.18.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-06-26 22:06:14 +08:00
|
|
|
chmod 777 -R /etc/lighttpd; \
|
2023-05-03 23:27:55 +08:00
|
|
|
mkdir -p /var/www/domaincheck; \
|
2023-06-26 22:06:14 +08:00
|
|
|
chown www-data:www-data -R /var/www; \
|
|
|
|
chmod 777 -R /var/www/domaincheck
|
|
|
|
COPY --chown=www-data:www-data lighttpd.conf /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-06-26 06:56:08 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|