Skip to content

Commit 3f2940a

Browse files
committed
Add deploy script for prod
1 parent 2ea74b4 commit 3f2940a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ COPY database database
1616
COPY src/schema.graphql dist
1717
COPY src/generated/prisma.graphql dist/generated/prisma.graphql
1818

19+
RUN echo "cd /database && /node_modules/.bin/prisma deploy" > deploy.sh && chmod +x deploy.sh
20+
1921
ENV NODE_ENV production
2022
ENV PORT 4000
2123
CMD node /dist/index.js

0 commit comments

Comments
 (0)