From abe6d02a4cdefb6536180041e11a95dabd8ed3fc Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 2 Dec 2025 11:06:13 -0800 Subject: [PATCH] =?UTF-8?q?fix(planting-service):=20=E4=BF=AE=E5=A4=8D=20C?= =?UTF-8?q?MD=20=E8=B7=AF=E5=BE=84=E5=B9=B6=E7=BB=9F=E4=B8=80=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20curl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/services/planting-service/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/services/planting-service/Dockerfile b/backend/services/planting-service/Dockerfile index 1e0c0ada..f86e8058 100644 --- a/backend/services/planting-service/Dockerfile +++ b/backend/services/planting-service/Dockerfile @@ -24,10 +24,10 @@ FROM node:20-slim AS production WORKDIR /app -# Install OpenSSL and wget for health checks +# Install OpenSSL and curl for health checks RUN apt-get update && apt-get install -y --no-install-recommends \ openssl \ - wget \ + curl \ && rm -rf /var/lib/apt/lists/* # Copy package files @@ -47,8 +47,8 @@ COPY --from=builder /app/dist ./dist EXPOSE 3003 # Health check -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3003/api/v1/health || exit 1 +HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \ + CMD curl -f http://localhost:3003/api/v1/health || exit 1 # Start the application -CMD ["node", "dist/src/main.js"] +CMD ["node", "dist/main.js"]