fix: healthcheck used curl, absent in python:3.11-slim
Build and Deploy / Build Image (push) Successful in 31s
Build and Deploy / Deploy to Portainer (push) Successful in 5s

Container was killed as unhealthy (exit 137) on every start.
Use python urllib for the healthcheck instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-11 21:31:38 -07:00
co-authored by Claude Fable 5
parent d42adacd38
commit fdd7f9d751
+1 -1
View File
@@ -12,7 +12,7 @@ services:
ports: ports:
- "8182:5000" - "8182:5000"
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"] test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/')"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3