From 51d49a5fa9e5cef638d308e61d4fdc78f0e3f292 Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 2 Dec 2025 09:07:22 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20=E6=94=B9=E7=94=A8=20curl=20?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 wget 改为 curl (更通用) - 简化健康检查命令: curl -f 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/admin-web/Dockerfile | 4 ++-- frontend/admin-web/docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/admin-web/Dockerfile b/frontend/admin-web/Dockerfile index f686ae92..f7220c26 100644 --- a/frontend/admin-web/Dockerfile +++ b/frontend/admin-web/Dockerfile @@ -31,8 +31,8 @@ WORKDIR /app ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 -# 安装 wget 用于健康检查 -RUN apk add --no-cache wget +# 安装 curl 用于健康检查 +RUN apk add --no-cache curl # 创建非 root 用户 RUN addgroup --system --gid 1001 nodejs diff --git a/frontend/admin-web/docker-compose.yml b/frontend/admin-web/docker-compose.yml index 489d44bf..f5f343de 100644 --- a/frontend/admin-web/docker-compose.yml +++ b/frontend/admin-web/docker-compose.yml @@ -12,7 +12,7 @@ services: - NODE_ENV=production - NEXT_TELEMETRY_DISABLED=1 healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"] + test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] interval: 30s timeout: 10s retries: 3