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