fix(frontend): pass allow-build flags to pnpm install in Docker build

Some CI runners still fail with ERR_PNPM_IGNORED_BUILDS even with package-level
configuration. Pass explicit allow-build flags to `pnpm install` in Dockerfile so
required postinstall scripts are always permitted during image builds.
This commit is contained in:
wizardchen
2026-05-08 16:25:25 +08:00
committed by lyingbug
parent 483576a9b6
commit de7a241f8b
+1 -1
View File
@@ -13,7 +13,7 @@ COPY packages/xlsx-0.20.2.tgz ./packages/xlsx-0.20.2.tgz
# 安装依赖
RUN corepack enable
RUN pnpm install
RUN pnpm install --allow-build=@vue-office/pptx --allow-build=esbuild --allow-build=vue-demi
# 复制项目文件
COPY . .