fix: HEALTHCHECK 去掉 --start-period,兼容 55 的 Docker 17.04
55 部署机 Docker 17.04 不认 --start-period,green-v2 首次构建在此失败; 线上 blue 的 healthcheck 本来就是 interval 30s / timeout 10s / retries 3,无 start-period。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -65,7 +65,7 @@ USER appuser | ... | @@ -65,7 +65,7 @@ USER appuser |
| 65 | EXPOSE 5088 | 65 | EXPOSE 5088 |
| 66 | 66 | ||
| 67 | # Health check | 67 | # Health check |
| 68 | HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ | 68 | HEALTHCHECK --interval=30s --timeout=10s --retries=3 \ |
| 69 | CMD curl -f http://localhost:5088/health || exit 1 | 69 | CMD curl -f http://localhost:5088/health || exit 1 |
| 70 | 70 | ||
| 71 | # Run the application | 71 | # Run the application | ... | ... |
-
Please register or sign in to post a comment