Skip to content

Commit

Permalink
Env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Sep 17, 2024
1 parent e6b189f commit f222a62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ COPY . .

RUN npm install
RUN cd packages/db && DATABASE_URL=$DATABASE_URL npx prisma generate && cd ../..
## put DATABASE_URL in apps/web/.env
RUN echo DATABASE_URL=$DATABASE_URL >> apps/web/.env
RUN DATABASE_URL=$DATABASE_URL npm run build

EXPOSE 3000
Expand Down

0 comments on commit f222a62

Please sign in to comment.