feat: health check
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m42s

This commit is contained in:
2026-05-16 17:19:36 +02:00
parent 41eb2fa433
commit 39f549f156
2 changed files with 92 additions and 0 deletions

View File

@@ -14,7 +14,10 @@ COPY . .
RUN pnpm build
FROM base AS runtime
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build /app/.output ./.output
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \
CMD curl -sf http://localhost:3000/api/health || exit 1
CMD ["node", ".output/server/index.mjs"]