Skip to content

Commit

Permalink
build: generate prisma client during build
Browse files Browse the repository at this point in the history
jakowenko committed Jun 22, 2023

Verified

This commit was signed with the committer’s verified signature.
oliviertassinari Olivier Tassinari
1 parent d9821f5 commit b66bc55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .build/Dockerfile
Original file line number Diff line number Diff line change
@@ -26,7 +26,9 @@ RUN npm install
WORKDIR /app/api
COPY /api/server.ts .
COPY /api/src ./src
COPY /api/prisma ./prisma

RUN npx prisma generate
RUN npx tsc
RUN mv node_modules /tmp/node_modules && mv dist /tmp/dist-api && rm -r * && mv /tmp/dist-api/* . && mv /tmp/node_modules node_modules
COPY /api/prisma .

0 comments on commit b66bc55

Please sign in to comment.