fix(docker): resolve pnpm v10 ERR_PNPM_IGNORED_BUILDS in Dockerfile
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
@@ -13,5 +13,12 @@
|
||||
"build": "pnpm -r build",
|
||||
"lint": "pnpm -r lint",
|
||||
"typecheck": "pnpm -r typecheck"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"@swc/core",
|
||||
"esbuild",
|
||||
"sharp"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user