all-in-one/Containers/domaincheck/Dockerfile
Zoey ca9b0cccf3
optimze domaincheck Dockerfile
Signed-off-by: Zoey <zoey@z0ey.de>
2023-05-03 16:29:25 +02:00

17 lines
532 B
Docker

FROM alpine:3.17.3
RUN apk add --no-cache bash lighttpd netcat-openbsd; \
adduser -S www-data -G www-data; \
rm -rf /etc/lighttpd/lighttpd.conf; \
chmod +r -R /etc/lighttpd && \
chown www-data:www-data -R /var/www && \
mkdir -p /var/www/domaincheck
COPY --chown=www-data:www-data lighttpd.conf /etc/lighttpd/lighttpd.conf
COPY --chmod=775 start.sh /start.sh
USER www-data
ENTRYPOINT ["/start.sh"]
HEALTHCHECK CMD nc -z localhost $APACHE_PORT || exit 1
LABEL com.centurylinklabs.watchtower.monitor-only="true"