From ef59f860718f7fdc6a19380f322b0ad5bb940c1f Mon Sep 17 00:00:00 2001 From: isra el Date: Wed, 4 Jun 2025 21:36:14 +0300 Subject: [PATCH] fix(infra): fix dockerfile --- web/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index 8fe15fa..5f79010 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -57,12 +57,11 @@ COPY --from=builder --chown=nextjs:nodejs /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static -# Copy Prisma schema and generate client during runtime -COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma + 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 +# Install only production dependencies RUN pnpm install --prod --frozen-lockfile # Switch to non-root user