Commit 7618dc4
Fix cross-compilation of native modules in Dockerfile (#66)
Change builder stage from $BUILDPLATFORM to $TARGETPLATFORM so that
native Node.js modules (better-sqlite3) are compiled for the target
architecture rather than the build machine's architecture.
With $BUILDPLATFORM, cross-compilation scenarios (e.g., arm64 Mac
building for amd64 clusters) produce native binaries for the wrong
architecture, causing runtime failures.
Fixes #65
Signed-off-by: Simon Zhu <simon.zhu@mongodb.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent d77c3c3 commit 7618dc4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments