From b8368cfc32ffb00e962a77159781e9a33e178c76 Mon Sep 17 00:00:00 2001 From: Tuluobo Date: Sun, 22 Sep 2024 23:32:49 +0800 Subject: [PATCH] fix: `not found curl` in health check --- Dockerfile | 1 + docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 79de8c2..ae823ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,7 @@ RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs RUN set -x \ + && apk add --no-cache curl \ && corepack enable pnpm \ && pnpm add prisma diff --git a/docker-compose.yaml b/docker-compose.yaml index cc6a6d3..1644747 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,7 +11,7 @@ services: db: condition: service_healthy healthcheck: - test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"] + test: ["CMD-SHELL", "curl http://localhost:3000/api/health"] interval: 5s timeout: 5s retries: 5