From 2b110b6fc517a4df24685292dd9a362c0ea185c1 Mon Sep 17 00:00:00 2001 From: isra el Date: Wed, 4 Jun 2025 21:18:58 +0300 Subject: [PATCH] fix(infra): fix docker-build for web --- web/Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index 591cbf6..8fe15fa 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -29,8 +29,6 @@ COPY . . # Set environment variables for building ENV NEXT_TELEMETRY_DISABLED 1 -# Generate prisma client - make sure it exists -RUN pnpm prisma generate # Build the application RUN pnpm build @@ -65,8 +63,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/package.json ./ COPY --from=builder --chown=nextjs:nodejs /app/pnpm-lock.yaml ./ # Install only production dependencies, including Prisma, and generate Prisma client -RUN pnpm install --prod --frozen-lockfile && \ - pnpm prisma generate +RUN pnpm install --prod --frozen-lockfile # Switch to non-root user USER nextjs