fix(backup-service): 修正启动路径和健康检查等待时间

- start-period: 5s -> 40s (给予足够启动时间)
- CMD: dist/main.js -> dist/src/main.js (修正实际路径)
- 保持使用 wget (Alpine 原生支持)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Developer 2025-12-02 10:11:37 -08:00
parent 781619e2ff
commit 9088b1a9ee
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ USER nestjs
EXPOSE 3002
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3002/health || exit 1
# Start the application
CMD ["node", "dist/main.js"]
CMD ["node", "dist/src/main.js"]