Skip to content

Commit 677ecb1

Browse files
committed
Updated prod dockerfile
1 parent 3e0dbe4 commit 677ecb1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile.prod

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ ARG DATABASE_URL
44
WORKDIR /usr/src/app
55

66
COPY . .
7-
RUN yarn install
8-
RUN cd packages/db && DATABASE_URL=$DATABASE_URL npx prisma generate && cd ../..
9-
ENV DATABASE_URL=$DATABASE_URL
10-
RUN yarn build
117

12-
EXPOSE 3000
8+
RUN npm install
9+
RUN DATABASE_URL=$DATABASE_URL npx prisma generate
10+
RUN DATABASE_URL=$DATABASE_URL npm run build
1311

14-
CMD ["npm", "run", "start"]
12+
EXPOSE 3000
1513

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

0 commit comments

Comments
 (0)