feat:增加健康检查

This commit is contained in:
2025-07-27 19:13:13 +08:00
parent 6ec5f11894
commit 1158aba04b
2 changed files with 21 additions and 0 deletions
+3
View File
@@ -12,3 +12,6 @@ EXPOSE 5157
# 启动应用
ENTRYPOINT ["java", "-jar", "LPT.jar"]
# 健康检查
HEALTHCHECK --interval=10s --timeout=5s CMD curl --fail http://localhost:5157/actuator/health || exit 1