From de3df6c7a915d94d235cf916504c338430a2df4b Mon Sep 17 00:00:00 2001 From: Chaim Date: Tue, 24 Mar 2026 20:11:45 +0000 Subject: [PATCH] Add HEALTHCHECK to Dockerfile using python3 urllib Coolify requires curl/wget for HTTP healthchecks on Dockerfile deployments, but the python:3.12-slim image doesn't include them. Use python3 urllib instead. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index cf72610..092f28e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,7 @@ ENV DOTENV_PATH=/home/chaim/.env EXPOSE 8080 +HEALTHCHECK --interval=5s --timeout=5s --start-period=10s --retries=10 \ + CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/')" || exit 1 + CMD ["uvicorn", "web.app:app", "--host", "0.0.0.0", "--port", "8080"]