mirror of
https://github.com/freee/freee-mcp.git
synced 2026-09-19 02:18:01 +08:00
a79b6387f4
PR #427 split the original /health endpoint into /livez (liveness, no external deps) and /readyz (readiness, with Redis ping), leaving /health as a backward-compatible alias of /readyz. Remove that transitional alias now so the API surface is clean and operators are no longer exposed to a path whose semantics quietly changed. - Drop /health route registration in remote and sign HTTP servers - Stop exempting /health from the OTel tracing middleware skip list - Update Dockerfile HEALTHCHECK probes to /livez (liveness must not depend on Redis, so /livez is the correct target — not /readyz) - Remove /health backward-compatibility tests; coverage for the underlying behaviour is provided by the existing /readyz test cases Operator note: liveness and readiness probes must point at /livez and /readyz respectively before upgrading; /health now returns 404. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
710 B
Docker
21 lines
710 B
Docker
FROM oven/bun:1.3-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package.json bun.lock ./
|
|
RUN bun install --frozen-lockfile --ignore-scripts
|
|
COPY . .
|
|
RUN bun run build
|
|
|
|
FROM oven/bun:1.3-alpine
|
|
RUN addgroup -g 65532 -S nonroot && adduser -u 65532 -S nonroot -G nonroot
|
|
WORKDIR /app
|
|
COPY --from=builder /app/bin ./bin
|
|
COPY --from=builder /app/dist ./dist
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/package.json ./
|
|
COPY --from=builder /app/openapi/minimal ./openapi/minimal
|
|
USER 65532:65532
|
|
EXPOSE 3002
|
|
HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=3 \
|
|
CMD wget -q --spider http://localhost:3002/livez || exit 1
|
|
CMD ["bun", "run", "bin/freee-sign-remote-mcp.js"]
|