Skip to content

Commit

Permalink
Updated dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Sep 16, 2024
1 parent f970806 commit e197059
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ WORKDIR /usr/src/app
COPY . .
RUN yarn install
RUN cd packages/db && DATABASE_URL=$DATABASE_URL npx prisma generate && cd ../..
RUN DATABASE_URL=$DATABASE_URL yarn build
RUN yarn install
ENV DATABASE_URL=$DATABASE_URL
RUN yarn build

EXPOSE 3000

Expand Down

0 comments on commit e197059

Please sign in to comment.