From 16aa6cdbf4e9d9cec10200584bb756f081a65eda Mon Sep 17 00:00:00 2001 From: "kindralai[bot]" Date: Fri, 10 Jul 2026 13:23:14 +0000 Subject: [PATCH] fix: HEALTHCHECK now reads $PORT env var (#291) The HEALTHCHECK CMD hardcoded port 8000, so containers with a custom PORT env var were reported as unhealthy. Use ${PORT:-8000} so the health probe respects the configured port. --- humux/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/humux/Dockerfile b/humux/Dockerfile index 0bdb017..2246d99 100644 --- a/humux/Dockerfile +++ b/humux/Dockerfile @@ -159,6 +159,6 @@ EXPOSE 8000 # The start period is generous: the first boot runs the setup wizard and may # take a while before the /health route responds 200. HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ - CMD curl -f http://localhost:8000/health || exit 1 + CMD curl -f "http://localhost:${PORT:-8000}/health" || exit 1 CMD ["uv", "run", "python", "-m", "core.main"]