Fix Docker assets stage missing pnpm-workspace.yaml

The tar override lives in pnpm-workspace.yaml, which pnpm-lock.yaml
records. Copying only package.json + pnpm-lock.yaml left pnpm without
the overrides config, causing ERR_PNPM_LOCKFILE_CONFIG_MISMATCH on
frozen install.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-14 16:25:44 +02:00
parent 227b1f674d
commit d2bf6efdb4
+1 -1
View File
@@ -25,7 +25,7 @@ RUN uv run python manage.py gen_element_types
FROM node:22-bookworm-slim AS assets FROM node:22-bookworm-slim AS assets
WORKDIR /app WORKDIR /app
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Corepack ships with Node and activates the pnpm version pinned in # Corepack ships with Node and activates the pnpm version pinned in
# package.json's "packageManager" field — no npm bootstrap needed. # package.json's "packageManager" field — no npm bootstrap needed.
RUN corepack enable && pnpm install --frozen-lockfile --ignore-scripts RUN corepack enable && pnpm install --frozen-lockfile --ignore-scripts