feat: auto-run prisma db push on container startup

This commit is contained in:
2026-05-11 23:30:35 +08:00
parent c7ad849346
commit 3044b3d921
2 changed files with 9 additions and 1 deletions

View File

@@ -23,6 +23,8 @@ COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/prisma ./prisma
COPY start.sh ./
RUN chmod +x start.sh
EXPOSE 3001
CMD ["node", "dist/index.js"]
CMD ["./start.sh"]