fix healthcheck
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user