From 100e006218a85d038461e81f0eaf3953121629d5 Mon Sep 17 00:00:00 2001 From: efrilm Date: Wed, 30 Sep 2026 22:35:20 +0700 Subject: [PATCH] fix(docker): healthcheck the port the app listens on The HEALTHCHECK curled localhost:3300/health, but the app listens on 4000 (server.port in infra/*.yaml, EXPOSE 4000). The check always failed, so deployment.sh waited on 'Waiting for healthcheck...', found the container unhealthy and rolled back to an image with the same broken check. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bdbd381..128cda3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,6 @@ COPY --from=build /out/app /app ENV TZ=Asia/Jakarta EXPOSE 4000 HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \ - CMD curl -fsS http://localhost:3300/health || exit 1 + CMD curl -fsS http://localhost:4000/health || exit 1 USER appuser ENTRYPOINT ["/app"]