diff --git a/Dockerfile b/Dockerfile index cd46e18..e50246f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ WORKDIR /app # Copy package files COPY package.json package-lock.json* ./ -RUN npm ci +# Install dependencies but skip Prisma postinstall +RUN npm ci --ignore-scripts # Rebuild the source code only when needed FROM base AS builder @@ -17,8 +18,8 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -# Generate Prisma Client -RUN npx prisma generate +# Generate Prisma Client for the correct platform (Debian) +RUN npx prisma generate --generator client # Build Next.js application ENV NEXT_TELEMETRY_DISABLED 1