We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc707af commit 720a8d8Copy full SHA for 720a8d8
1 file changed
Dockerfile.prod
@@ -1,5 +1,4 @@
1
FROM node:20-alpine
2
-ARG DATABASE_URL
3
4
RUN apk update && apk add --no-cache openssl
5
@@ -8,12 +7,8 @@ WORKDIR /usr/src/app
8
7
COPY . .
9
10
RUN npm install --legacy-peer-deps
11
-RUN cd packages/db && DATABASE_URL=$DATABASE_URL npx prisma generate && cd ../..
12
-## put DATABASE_URL in apps/web/.env
13
-RUN echo DATABASE_URL=$DATABASE_URL >> apps/web/.env
14
-RUN DATABASE_URL=$DATABASE_URL npm run build
15
-## Remove .env file
16
-RUN rm apps/web/.env
+RUN npx prisma generate --schema packages/db/prisma/schema.prisma
+RUN npm run build
17
18
EXPOSE 3000
19
0 commit comments