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