From 53943636ea511082428bbaf6f5fc308e9cfd5455 Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 2 Dec 2025 09:57:32 -0800 Subject: [PATCH] =?UTF-8?q?fix(backup-service):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E9=85=8D=E7=BD=AE=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 Dockerfile 从 wget 改为 curl - 统一 Dockerfile 和 docker-compose.yml 健康检查工具 - 增加 start_period 从 5s 到 40s,给予服务更多启动时间 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/services/backup-service/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/services/backup-service/Dockerfile b/backend/services/backup-service/Dockerfile index 8b8e04fe..9acde4af 100644 --- a/backend/services/backup-service/Dockerfile +++ b/backend/services/backup-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/* # Create non-root user for security @@ -55,8 +55,8 @@ USER nestjs EXPOSE 3002 # Health check -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3002/health || exit 1 +HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \ + CMD curl -f http://localhost:3002/health || exit 1 # Start the application CMD ["node", "dist/src/main.js"]