2024-02-16 23:21:18 +08:00
|
|
|
# syntax=docker/dockerfile:latest
|
2024-09-09 20:39:31 +08:00
|
|
|
FROM alpine:3.20.3
|
2023-05-03 23:02:07 +08:00
|
|
|
RUN set -ex; \
|
2024-04-17 23:52:42 +08:00
|
|
|
apk upgrade --no-cache -a; \
|
2023-05-03 23:02:07 +08:00
|
|
|
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
|
|
|
|
2024-05-28 23:24:28 +08:00
|
|
|
HEALTHCHECK CMD nc -z 127.0.0.1 $APACHE_PORT || exit 1
|
2023-06-26 06:56:08 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|