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"]