Replace curl healthcheck with wget

This commit is contained in:
2026-01-02 16:38:51 +01:00
parent 7ed98c64c4
commit 8c60a43ff2

View File

@@ -6,11 +6,10 @@ RUN ["zola", "build"]
FROM ghcr.io/static-web-server/static-web-server:2.40.1-alpine
ENV SERVER_HEALTH=true
WORKDIR /
RUN apk --no-cache add curl
COPY --from=zola /project/public /public
HEALTHCHECK \
--interval=10s \
--timeout=5s \
--start-period=3s \
--retries=3 \
CMD ["curl", "-s", "http://localhost/health"]
CMD ["wget", "http://localhost/health", "-O", "/dev/null", "-q"]