fix: Docker CMD 添加 prisma migrate deploy,启动时自动应用迁移
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 2s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-17 22:43:19 +08:00
parent 6d7cbffc3b
commit c30f7cdb63

View File

@ -28,4 +28,4 @@ COPY --from=builder /app/package.json ./
EXPOSE 3000 EXPOSE 3000
CMD ["node", "dist/main.js"] CMD ["sh", "-c", "npx prisma migrate deploy && node dist/main.js"]