Update Dockerfile

This commit is contained in:
Alexandre
2023-03-12 20:14:52 +01:00
committed by GitHub
parent ef2490f087
commit 87313fefb9

View File

@@ -131,6 +131,15 @@ LABEL \
org.opencontainers.image.revision=${BUILD_REF} \ org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION} org.opencontainers.image.version=${BUILD_VERSION}
#################### #################
# 6 HealthcheckNOT # # 6 Healthcheck #
#################### #################
ENV HEALTH_PORT="7878" \
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 || exit 1