diff --git a/backend/.npmrc b/backend/.npmrc index 2d6101e..97317ff 100644 --- a/backend/.npmrc +++ b/backend/.npmrc @@ -1,2 +1,5 @@ enable-pre-post-scripts=true -onlyBuiltDependenciesFile= \ No newline at end of file +onlyBuiltDependencies[]=@prisma/client +onlyBuiltDependencies[]=@prisma/engines +onlyBuiltDependencies[]=esbuild +onlyBuiltDependencies[]=prisma \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile index 1c03314..4f61f5f 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -4,6 +4,8 @@ FROM node:22-alpine AS builder WORKDIR /app +ENV PNPM_APPROVE_BUILDS=* + COPY package.json pnpm-lock.yaml .npmrc ./ RUN corepack enable && pnpm install --frozen-lockfile