feat: auto-run prisma db push on container startup
This commit is contained in:
@@ -23,6 +23,8 @@ COPY --from=builder /app/package*.json ./
|
|||||||
COPY --from=builder /app/node_modules ./node_modules
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
COPY --from=builder /app/prisma ./prisma
|
COPY --from=builder /app/prisma ./prisma
|
||||||
|
COPY start.sh ./
|
||||||
|
RUN chmod +x start.sh
|
||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
CMD ["node", "dist/index.js"]
|
CMD ["./start.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user