fix(docker): resolve pnpm v10 ERR_PNPM_IGNORED_BUILDS in Dockerfile

This commit is contained in:
AyrisAI
2026-08-20 18:22:36 +03:00
parent d396cbb221
commit bf44bf3e9d
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ COPY package.json pnpm-lock.yaml* pnpm-workspace.yaml tsconfig.base.json ./
COPY packages/shared ./packages/shared
COPY apps/api ./apps/api
RUN pnpm install --frozen-lockfile --filter @menulio/api...
RUN pnpm install --frozen-lockfile --filter @menulio/api... --config.ignore-scripts=true
RUN pnpm --filter @menulio/api build
+2 -2
View File
@@ -13,8 +13,8 @@ COPY package.json pnpm-lock.yaml* pnpm-workspace.yaml tsconfig.base.json ./
COPY packages/shared/package.json ./packages/shared/
COPY apps/web/package.json ./apps/web/
# Install dependencies for web & shared workspace
RUN pnpm install --frozen-lockfile --filter @menulio/web...
# Install dependencies for web & shared workspace ignoring unapproved optional scripts
RUN pnpm install --frozen-lockfile --filter @menulio/web... --config.ignore-scripts=true
# 2. Build the Next.js application
FROM base AS builder
+7
View File
@@ -13,5 +13,12 @@
"build": "pnpm -r build",
"lint": "pnpm -r lint",
"typecheck": "pnpm -r typecheck"
},
"pnpm": {
"onlyBuiltDependencies": [
"@swc/core",
"esbuild",
"sharp"
]
}
}