build: Patch docker images to not build with pnpm 12 (#38223)

This commit is contained in:
Matsu 2026-09-09 16:33:22 +03:00 committed by GitHub
parent 24040d8f32
commit 55c635f9bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
ARG NODE_VERSION=24.13.1
ARG PNPM_VERSION=10.22.0
ARG PYTHON_VERSION=3.13
# ==============================================================================
@ -9,7 +10,8 @@ COPY ./dist/task-runner-javascript /app/task-runner-javascript
WORKDIR /app/task-runner-javascript
RUN corepack enable pnpm
ARG PNPM_VERSION
RUN npm i -g "pnpm@${PNPM_VERSION}"
# Remove `catalog` and `workspace` references from package.json to allow `pnpm add` in extended images
RUN node -e "const pkg = require('./package.json'); \

View File

@ -13,6 +13,7 @@
# ==============================================================================
ARG NODE_VERSION=24.13.1
ARG PNPM_VERSION=10.22.0
ARG PYTHON_VERSION=3.13
@ -24,7 +25,8 @@ COPY ./dist/task-runner-javascript /app/task-runner-javascript
WORKDIR /app/task-runner-javascript
RUN corepack enable pnpm
ARG PNPM_VERSION
RUN npm i -g "pnpm@${PNPM_VERSION}"
# Remove `catalog` and `workspace` references from package.json to allow `pnpm add`
RUN node -e "const pkg = require('./package.json'); \