fix healthcheck

This commit is contained in:
2025-12-17 13:58:18 -05:00
parent 0a32094e93
commit 083b862552

View File

@@ -52,9 +52,6 @@ RUN bun build ./packages/api-server/src/index.ts \
--outdir=./dist/mcp \ --outdir=./dist/mcp \
--minify --minify
# Verify builds succeeded
RUN ls -lh ./dist/api/index.js ./dist/mcp/index.js
# ============================================================================= # =============================================================================
# Stage 3: Runtime # Stage 3: Runtime
# Minimal production image with both services # Minimal production image with both services
@@ -120,7 +117,7 @@ VOLUME ["/app/cookies"]
# Health check that verifies both services are responding # Health check that verifies both services are responding
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ 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 # Run the startup script
CMD ["/app/start.sh"] CMD ["/app/start.sh"]