Skip to content

Commit

Permalink
Updated prod dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Sep 17, 2024
1 parent 3e0dbe4 commit 677ecb1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ ARG DATABASE_URL
WORKDIR /usr/src/app

COPY . .
RUN yarn install
RUN cd packages/db && DATABASE_URL=$DATABASE_URL npx prisma generate && cd ../..
ENV DATABASE_URL=$DATABASE_URL
RUN yarn build

EXPOSE 3000
RUN npm install
RUN DATABASE_URL=$DATABASE_URL npx prisma generate
RUN DATABASE_URL=$DATABASE_URL npm run build

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

CMD ["npm", "run", "start"]

0 comments on commit 677ecb1

Please sign in to comment.