Skip to content

Commit

Permalink
Fix Build: Prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam authored Jul 12, 2022
1 parent cda1cf7 commit c7a28d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14 AS builder
FROM node:16 AS builder

# Create app directory
WORKDIR /app
Expand All @@ -17,12 +17,13 @@ COPY . .

RUN yarn run build

FROM node:12
FROM node:16

COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
COPY --from=builder /app/yarn.lock ./
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/prisma ./prisma

EXPOSE 3000
CMD [ "npm", "run", "start:prod" ]
CMD [ "npm", "run", "start:prod" ]

0 comments on commit c7a28d5

Please sign in to comment.