Merge pull request #620 from tcely/patch-4

Dockerfile health check without the shell
This commit is contained in:
meeb 2025-01-15 20:48:32 +11:00 committed by GitHub
commit 8a0a91b83e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -375,7 +375,7 @@ RUN set -x && \
COPY config/root /
# Create a healthcheck
HEALTHCHECK --interval=1m --timeout=10s CMD /app/healthcheck.py http://127.0.0.1:8080/healthcheck
HEALTHCHECK --interval=1m --timeout=10s --start-period=3m CMD ["/app/healthcheck.py", "http://127.0.0.1:8080/healthcheck"]
# ENVS and ports
ENV PYTHONPATH="/app" PYTHONPYCACHEPREFIX="/config/cache/pycache"