fix: correr prisma migrate deploy al arrancar el servidor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
c1e9dba2d1
commit
f2bd710694
+1
-1
@@ -13,4 +13,4 @@ COPY --from=builder /app/node_modules ./node_modules
|
|||||||
COPY --from=builder /app/package.json ./
|
COPY --from=builder /app/package.json ./
|
||||||
COPY --from=builder /app/prisma ./prisma
|
COPY --from=builder /app/prisma ./prisma
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
CMD ["node", "dist/main.js"]
|
CMD ["sh", "-c", "npx prisma migrate deploy && node dist/main.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user