From b7726e5aa0677b2154e225ce0ef4e0a2c2b05728 Mon Sep 17 00:00:00 2001 From: seahi Date: Wed, 17 Dec 2025 09:57:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b97c25e..efbf9df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,8 @@ COPY app.py . EXPOSE 80 # 添加健康检查(v2.0+ 特性) -HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1 +# 注意:v1.0 版本没有 /health 端点,不应添加健康检查 +# HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \ +# CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1 CMD ["python", "app.py"]