From 083b86255291661113c037c3799b1ce307cf1701 Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Wed, 17 Dec 2025 13:58:18 -0500 Subject: [PATCH] fix healthcheck --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 40af632..e67b6ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,9 +52,6 @@ RUN bun build ./packages/api-server/src/index.ts \ --outdir=./dist/mcp \ --minify -# Verify builds succeeded -RUN ls -lh ./dist/api/index.js ./dist/mcp/index.js - # ============================================================================= # Stage 3: Runtime # Minimal production image with both services @@ -120,7 +117,7 @@ VOLUME ["/app/cookies"] # Health check that verifies both services are responding HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ - CMD bun -e "Promise.all([fetch('http://localhost:4005/api/status'),fetch('http://localhost:4006/.well-known/mcp/server-card.json')]).then(r=>process.exit(0)).catch(()=>process.exit(1))" + CMD bun -e "Promise.all([fetch('http://localhost:${PORT}/api/status'),fetch('http://localhost:${MCP_PORT}/.well-known/mcp/server-card.json')]).then(r=>process.exit(0)).catch(()=>process.exit(1))" # Run the startup script CMD ["/app/start.sh"]