fix: update healthcheck command for frontend service and install curl in Dockerfile
Some checks failed
Build and Deploy Thoughts / build-and-deploy-local (push) Failing after 1m50s

This commit is contained in:
2025-09-09 04:09:14 +02:00
parent 29afc2e92e
commit ec73a0c373
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ services:
depends_on: depends_on:
- backend - backend
healthcheck: healthcheck:
test: ["CMD", "nc", "-z", "localhost", "3000"] test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5

View File

@@ -17,7 +17,7 @@ RUN bun run build
FROM node:22-slim AS release FROM node:22-slim AS release
RUN apt-get update && apt-get install -y --no-install-recommends netcat-openbsd && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/standalone ./