We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0dbe4 commit 677ecb1Copy full SHA for 677ecb1
Dockerfile.prod
@@ -4,12 +4,11 @@ ARG DATABASE_URL
4
WORKDIR /usr/src/app
5
6
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
11
12
-EXPOSE 3000
+RUN npm install
+RUN DATABASE_URL=$DATABASE_URL npx prisma generate
+RUN DATABASE_URL=$DATABASE_URL npm run build
13
14
-CMD ["npm", "run", "start"]
+EXPOSE 3000
15
+CMD ["npm", "run", "start"]
0 commit comments