feat: 删除健康检查

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

View File

@@ -25,7 +25,8 @@ COPY app.py .
EXPOSE 80 EXPOSE 80
# 添加健康检查v2.0+ 特性) # 添加健康检查v2.0+ 特性)
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \ # 注意v1.0 版本没有 /health 端点,不应添加健康检查
CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1 # 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"] CMD ["python", "app.py"]