feat(N/A): 调整容器内运行端口为统一的8888,方便使用一个dockerfile,就可以配置全部的健康检查
This commit is contained in:
+2
-2
@@ -8,10 +8,10 @@ WORKDIR /app
|
||||
COPY target/LPT.jar LPT.jar
|
||||
|
||||
# 暴露应用运行的端口
|
||||
EXPOSE 5157
|
||||
EXPOSE 8888
|
||||
|
||||
# 启动应用
|
||||
ENTRYPOINT ["java", "-jar", "LPT.jar"]
|
||||
|
||||
# 健康检查
|
||||
HEALTHCHECK --interval=10s --timeout=5s CMD curl --fail http://localhost:5157/actuator/health || exit 1
|
||||
HEALTHCHECK --interval=10s --timeout=5s CMD curl --fail http://localhost:8888/actuator/health || exit 1
|
||||
|
||||
Reference in New Issue
Block a user