From d1a1dfc4f5c716241f2f7cc87eb5927dd209f4e2 Mon Sep 17 00:00:00 2001 From: talatops <110402662+talatops@users.noreply.github.com> Date: Tue, 17 Feb 2026 23:11:43 +0500 Subject: [PATCH] Update Dockerfile --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bab22af..e15e0e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,11 @@ COPY package*.json prisma.config.ts ./ COPY prisma ./prisma # Install ALL dependencies (including devDependencies needed for build) -RUN npm ci +RUN npm ci && npx prisma generate # Copy application code (includes .env created in CI from EC2_ENV for NEXT_PUBLIC_* at build time) COPY . . -# Regenerate Prisma Client with final schema before building Next.js -RUN npx prisma generate # Build the Next.js application (reads .env and embeds NEXT_PUBLIC_* into the bundle) RUN npm run build