🚧 Dockerfile changes

This commit is contained in:
Axel Olausson Holtenäs 2022-10-23 18:09:07 +02:00
parent c8ef44016e
commit 1a5190aef8
No known key found for this signature in database
GPG key ID: BEDBB4D61E6C8462

View file

@ -10,7 +10,6 @@ COPY prisma ./prisma/
# Install app dependencies # Install app dependencies
RUN npm install RUN npm install
RUN npx prisma migrate deploy
COPY . . COPY . .
@ -22,5 +21,7 @@ COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package*.json ./ COPY --from=builder /app/package*.json ./
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
RUN npx prisma migrate deploy
EXPOSE 3000 EXPOSE 3000
CMD [ "npm", "run", "start" ] CMD [ "npm", "run", "start" ]