Skip to content

Commit e197059

Browse files
committed
Updated dockerfile
1 parent f970806 commit e197059

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile.prod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ WORKDIR /usr/src/app
66
COPY . .
77
RUN yarn install
88
RUN cd packages/db && DATABASE_URL=$DATABASE_URL npx prisma generate && cd ../..
9-
RUN DATABASE_URL=$DATABASE_URL yarn build
9+
RUN yarn install
10+
ENV DATABASE_URL=$DATABASE_URL
11+
RUN yarn build
1012

1113
EXPOSE 3000
1214

0 commit comments

Comments
 (0)