fix(docker): pin frontend builder pnpm to v9
`corepack prepare pnpm@latest` now resolves to pnpm 11, which promotes ERR_PNPM_IGNORED_BUILDS to a hard error and breaks the frontend stage of `docker build`. Pin pnpm to v9 to match the CI workflow (pnpm/action-setup version: 9) and keep image builds reproducible. Fixes #2442
This commit is contained in:
parent
6e66edbb09
commit
44995404ef
@ -20,8 +20,8 @@ FROM ${NODE_IMAGE} AS frontend-builder
|
||||
|
||||
WORKDIR /app/frontend
|
||||
|
||||
# Install pnpm
|
||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
# Install pnpm (pinned to v9 to match CI and keep builds reproducible)
|
||||
RUN corepack enable && corepack prepare pnpm@9 --activate
|
||||
|
||||
# Install dependencies first (better caching)
|
||||
COPY frontend/package.json frontend/pnpm-lock.yaml ./
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user