增加npmrc
Some checks failed
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / generate (macos-latest) (push) Has been cancelled
CI / generate (ubuntu-latest) (push) Has been cancelled
CI / generate (windows-latest) (push) Has been cancelled
Publish Any Commit / publish (push) Has been cancelled

This commit is contained in:
2025-07-29 10:38:21 +08:00
parent 64a91ccf7c
commit 4d4e4681c5

View File

@@ -7,7 +7,7 @@
WORKDIR /app
# 1⃣ 先把锁文件拷进来,让这一层可以 cache
COPY package.json pnpm-lock.yaml ./
COPY package.json pnpm-lock.yaml .npmrc ./
# 2⃣ 再执行安装
RUN corepack enable && pnpm install --frozen-lockfile