2023-02-13 21:03:53 +08:00
|
|
|
FROM alpine:3.17.2
|
2023-01-16 01:22:31 +08:00
|
|
|
RUN apk add --no-cache lighttpd bash netcat-openbsd
|
2021-11-30 18:20:42 +08: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-18 01:30:34 +08:00
|
|
|
chown www-data:www-data -R /var/www && \
|
|
|
|
chown www-data:www-data /etc/lighttpd/lighttpd.conf
|
2021-11-30 18:20:42 +08:00
|
|
|
|
|
|
|
COPY start.sh /
|
|
|
|
RUN chmod +x /start.sh
|
|
|
|
|
|
|
|
USER www-data
|
|
|
|
RUN mkdir -p /var/www/domaincheck/
|
|
|
|
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"
|