From e34bbdc355ae0e1ac7c1524d126698fd6f00d215 Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Sun, 29 Jun 2025 20:40:59 +0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index d41bb1a..5ca62cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,11 +21,7 @@ ENV PORT=8000 # -------- Health check ----------------------------------------------------- HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ - CMD python - <<'PY' -import httpx, os, sys; \ -r=httpx.get(f"http://localhost:{os.getenv('PORT','8000')}/health"); \ -sys.exit(0 if r.status_code==200 else 1) -PY + CMD python -c "import httpx, os, sys; r=httpx.get(f'http://localhost:{os.getenv(\"PORT\",\"8000\")}/health'); sys.exit(0 if r.status_code==200 else 1)" EXPOSE 8000