Commit b0c5551
committed
fix(docker): add native-gyp toolchain for alpine pnpm install
Native-gyp postinstalls (better-sqlite3, cpu-features, etc.) require
python3/make/g++ which aren't in oven/bun:1-alpine by default. The
previous `|| true` had been silently masking these install failures.
Now that we surface them, the build correctly fails — fix by adding
the toolchain to the builder stage so native compiles succeed.
Build deps stay in the builder stage only; the runtime stage uses a
fresh oven/bun:1-alpine without the toolchain, keeping the final
image small.1 parent f4d7c5a commit b0c5551
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments