Skip to content

Commit bdbfe3f

Browse files
committed
Deploy prisma migrations before server launch
1 parent 59e5339 commit bdbfe3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ COPY --from=builder /build/node_modules/.prisma /app/node_modules/.prisma
3838

3939
EXPOSE 6173
4040
ENV PORT=6173
41-
CMD ["node", "index.js"]
41+
CMD ["sh", "-c", "npx prisma migrate deploy --schema=./node_modules/.prisma/client/schema.prisma && node index.js"]

0 commit comments

Comments
 (0)