From ec73a0c373bfaa81f1ba65b872a8ba583d949cf0 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Tue, 9 Sep 2025 04:09:14 +0200 Subject: [PATCH] fix: update healthcheck command for frontend service and install curl in Dockerfile --- compose.prod.yml | 2 +- thoughts-frontend/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ./