Revert back to wget for Docker healthcheck

This commit is contained in:
Yannik Rödel 2025-10-29 04:14:42 +01:00
parent 6ff06c2e92
commit 3d850eb121

View file

@ -28,7 +28,7 @@ RUN SITE=${SITE} npm run build:site
FROM docker.io/library/alpine:latest
ARG SITE
RUN apk add --no-cache lighttpd && \
RUN apk add --no-cache lighttpd wget && \
apk add --no-cache python3 py3-requests py3-itsdangerous py3-magic
RUN --mount=type=cache,target=/root/.cache/pip \
apk add --no-cache py3-pip && \
@ -53,7 +53,7 @@ ENV ZAMMAD_URL=https://ticket.z31.it
ENV ZAMMAD_GROUP=""
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD curl -sSf http://127.0.0.1/ > /dev/null || exit 1
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1/ || exit 1
# Reroute stdout to a new file descriptor so that Lighttpd can use it as the
# access log. See http.conf and here: