🚧 Dockerfile and script changes
This commit is contained in:
parent
1a5190aef8
commit
a84222965f
2 changed files with 3 additions and 4 deletions
|
@ -20,8 +20,6 @@ FROM node:19
|
|||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/package*.json ./
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
|
||||
RUN npx prisma migrate deploy
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "npm", "run", "start" ]
|
||||
CMD [ "npm", "run", "start:migrate:prod" ]
|
|
@ -9,6 +9,7 @@
|
|||
"prisma:generate": "prisma generate",
|
||||
"test": "jest",
|
||||
"start": "node dist",
|
||||
"start:migrate:prod": "prisma migrate deploy && npm run start",
|
||||
"prettier-format": "prettier \"src/**/*.ts\" --write",
|
||||
"lint": "eslint ./src --ext .ts"
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue