Update Dockerfile

This commit is contained in:
Alexandre
2025-01-02 09:19:38 +01:00
committed by GitHub
parent 00a5ac8f2c
commit f8c9e5228c

View File

@@ -113,6 +113,16 @@ LABEL \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}
####################
# 6 HealthcheckNOT #
####################
#################
# 6 Healthcheck #
#################
ENV HEALTH_PORT="80" \
HEALTH_URL=""
HEALTHCHECK \
--interval=5s \
--retries=5 \
--start-period=30s \
--timeout=25s \
CMD curl --fail "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || \
curl --fail "http://127.0.0.1:443" &>/dev/null || exit 1