fix(matrix): strip react-native patches in Dockerfile before pnpm install

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-23 12:33:36 +01:00
parent 34adf50a8e
commit 79207bf43f

View file

@ -37,7 +37,8 @@ COPY packages/eslint-config ./packages/eslint-config
# Copy matrix web app
COPY apps/matrix/apps/web ./apps/matrix/apps/web
# Install dependencies (--no-frozen-lockfile due to workspace overrides)
# Remove react-native patches (not applicable in web-only context) then install
RUN node -e "const p=require('./package.json'); delete p.pnpm?.patchedDependencies; require('fs').writeFileSync('./package.json', JSON.stringify(p, null, 2))"
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
# Build shared packages that need building