feat: 删除健康检查
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
2025-12-17 09:57:40 +08:00
parent e32f5eb803
commit b7726e5aa0

View File

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