diff --git a/compose.prod.yml b/compose.prod.yml index f43911d..91bf869 100644 --- a/compose.prod.yml +++ b/compose.prod.yml @@ -48,7 +48,7 @@ services: depends_on: - backend healthcheck: - test: ["CMD", "nc", "-z", "localhost", "3000"] + test: ["CMD", "curl", "-f", "http://localhost:3000"] interval: 10s timeout: 5s retries: 5 diff --git a/thoughts-frontend/Dockerfile b/thoughts-frontend/Dockerfile index 4a421ea..da3db3f 100644 --- a/thoughts-frontend/Dockerfile +++ b/thoughts-frontend/Dockerfile @@ -17,7 +17,7 @@ RUN bun run build 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/.next/standalone ./