From fdd7f9d751dcd5d1c97472c45b8be38f859f3594 Mon Sep 17 00:00:00 2001 From: Ricardo Mancinas Date: Sat, 11 Jul 2026 21:31:38 -0700 Subject: [PATCH] fix: healthcheck used curl, absent in python:3.11-slim Container was killed as unhealthy (exit 137) on every start. Use python urllib for the healthcheck instead. Co-Authored-By: Claude Fable 5 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 78eb87f..352177d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: ports: - "8182:5000" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:5000/"] + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/')"] interval: 30s timeout: 10s retries: 3