fix(docker): skip pnpm version switch during offline install (#5019)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
07cc4404d1
commit
c5fbdf404b
+3
-1
@@ -12,8 +12,10 @@ COPY pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
RUN pnpm fetch --ignore-scripts
|
||||
|
||||
# Copy package.json and install dependencies
|
||||
# corepack already pins pnpm, so skip pnpm's own version switch. It would try to
|
||||
# resolve the packageManager field from the registry, which fails with --offline.
|
||||
COPY package.json ./
|
||||
RUN pnpm install --offline --ignore-scripts
|
||||
RUN pnpm install --offline --ignore-scripts --pm-on-fail=ignore
|
||||
|
||||
# Copy assets and translations to build
|
||||
COPY vite.config.ts tsconfig.json .prettierrc.cjs .npmrc ./
|
||||
|
||||
Reference in New Issue
Block a user