From e197059dc2a27cd0c64f9f2770f079ab90f97683 Mon Sep 17 00:00:00 2001 From: harkirat Date: Tue, 17 Sep 2024 05:13:00 +0530 Subject: [PATCH] Updated dockerfile --- Dockerfile.prod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.prod b/Dockerfile.prod index e3e681a2..ce09df32 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -6,7 +6,9 @@ WORKDIR /usr/src/app COPY . . RUN yarn install RUN cd packages/db && DATABASE_URL=$DATABASE_URL npx prisma generate && cd ../.. -RUN DATABASE_URL=$DATABASE_URL yarn build +RUN yarn install +ENV DATABASE_URL=$DATABASE_URL +RUN yarn build EXPOSE 3000