fix: Docker CMD 添加 prisma migrate deploy,启动时自动应用迁移
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 2s
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:
parent
6d7cbffc3b
commit
c30f7cdb63
@ -28,4 +28,4 @@ COPY --from=builder /app/package.json ./
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "dist/main.js"]
|
||||
CMD ["sh", "-c", "npx prisma migrate deploy && node dist/main.js"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user