Commit f3f59a0
fix(docker): reinstall dependencies on target platform (#8816)
**Motivation**
- Report of our latest release not working on aarch64 via docker
**Description**
It seems that pnpm has stricter rules around which optionalDependencies
are installed, which lead to platform-specific dependencies not being
available in the final docker image on aarch64 builds.
Old dockerfile steps:
```
step 1: (on x86_64) install packages (doesn't install aarch64 packages)
step 2: (on aarch64) rebuild packages
final: doesn't have aarch64 packages
```
This PR adds to step 2 of the dockerfile to re-`pnpm install` when on
the target platform.1 parent af8d4d2 commit f3f59a0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments