This commit is contained in:
2025-11-01 17:02:16 +08:00
parent 287571b421
commit ce40cafad2
4 changed files with 49 additions and 0 deletions

View File

@@ -137,6 +137,9 @@ RUN ls -la app.jar && echo "JAR 文件大小: $(du -h app.jar | cut -f1)"
# 切换到非root用户
USER app
# 确保日志目录存在且有正确权限
RUN mkdir -p /app/logs
# 健康检查
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD curl -f http://localhost:9081/point-strategy/actuator/health || exit 1