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 packages/shared ./packages/shared
|
||||||
COPY apps/api ./apps/api
|
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
|
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 packages/shared/package.json ./packages/shared/
|
||||||
COPY apps/web/package.json ./apps/web/
|
COPY apps/web/package.json ./apps/web/
|
||||||
|
|
||||||
# Install dependencies for web & shared workspace
|
# Install dependencies for web & shared workspace ignoring unapproved optional scripts
|
||||||
RUN pnpm install --frozen-lockfile --filter @menulio/web...
|
RUN pnpm install --frozen-lockfile --filter @menulio/web... --config.ignore-scripts=true
|
||||||
|
|
||||||
# 2. Build the Next.js application
|
# 2. Build the Next.js application
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
|
|||||||
@@ -13,5 +13,12 @@
|
|||||||
"build": "pnpm -r build",
|
"build": "pnpm -r build",
|
||||||
"lint": "pnpm -r lint",
|
"lint": "pnpm -r lint",
|
||||||
"typecheck": "pnpm -r typecheck"
|
"typecheck": "pnpm -r typecheck"
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"onlyBuiltDependencies": [
|
||||||
|
"@swc/core",
|
||||||
|
"esbuild",
|
||||||
|
"sharp"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user