修改 ota cicd
Docker Build and Push / build-image (push) Successful in 6m37s

This commit is contained in:
cheney
2026-08-07 17:10:07 +08:00
parent 22a36fb213
commit add3ff8831
9 changed files with 141 additions and 15 deletions
+5
View File
@@ -51,6 +51,11 @@ COPY --from=builder /app/prisma.config.ts ./prisma.config.ts
COPY --from=builder /app/content ./content
COPY --from=builder /app/public ./public
# OTA 升级包: CI (docker-build.yml) 生成的 ota-package/, 随镜像发布
# 本地构建时只有占位文件 (ota-package/README.md), server 找不到 latest.json 则 OTA 返回"无更新"
COPY ota-package ./ota-package
ENV OTA_PACKAGE_DIR=/app/ota-package
# 健康检查
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://127.0.0.1:3001/api/health || exit 1