Skip to content

Commit c6d02f3

Browse files
committed
Automate migrations
1 parent 82232ba commit c6d02f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ ENV PRISMA_LOG_LEVEL=info
1919

2020
RUN mkdir -p /challenge-api/reports
2121

22+
RUN echo "Running database migrations..."
23+
RUN npx prisma migrate deploy
24+
2225
CMD ["node","/challenge-api/app.js"]

0 commit comments

Comments
 (0)