fix(ci): copy .npmrc before pnpm install in all Dockerfiles #654
Reference in New Issue
Block a user
Delete Branch "fix/dockerfile-npmrc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The .npmrc file contains supportedArchitectures settings to force pnpm to install glibc x64 binaries for native modules like matrix-sdk-crypto-nodejs.
Without copying this file into the Docker image, pnpm defaults to the platform's native behavior which may skip or install incorrect binaries.
This fixes the production crash:
Root cause: PR #653 added .npmrc with architecture hints but the Dockerfiles never copied it into the image.
Fix: Add before each Scope: all 8 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
╭ Warning ─────────────────────────────────────────────────────────────────────╮
│ │
│ Ignored build scripts: node-pty. │
│ Run "pnpm approve-builds" to pick which dependencies should be allowed │
│ to run scripts. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
. prepare$ husky || true
. prepare: Done
Done in 1.1s using pnpm v10.19.0 in: