fix(docker): 修复 contribution-service 和 mining-admin-service Dockerfile healthcheck 路径

将 healthcheck 路径从 /api/v1/health 改为 /api/v2/health,
与 main.ts 中的 API 前缀保持一致。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-11 22:56:26 -08:00
parent 978dfcb2bf
commit cab36fccf1
2 changed files with 2 additions and 2 deletions

View File

@ -45,6 +45,6 @@ ENV TZ=Asia/Shanghai
EXPOSE 3020
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD curl -f http://localhost:3020/api/v1/health || exit 1
CMD curl -f http://localhost:3020/api/v2/health || exit 1
CMD ["/app/start.sh"]

View File

@ -64,7 +64,7 @@ EXPOSE 3023
# 健康检查
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD curl -f http://localhost:3023/api/v1/health || exit 1
CMD curl -f http://localhost:3023/api/v2/health || exit 1
# 启动应用
CMD ["/app/start.sh"]