Commit 536e7ea
fix(docker): build the musl/Alpine image lean (--no-default-features) (#242)
The Docker image build has been broken since the bundled-embeddings default
(#237/#238): on Alpine/musl, `cargo build --release` now pulls in `ort`
(ONNX Runtime), whose prebuilt binaries are glibc-only, and the download chain
needs `openssl-sys` — which fails on Alpine (`Package 'openssl' not found`).
musl + ONNX Runtime is fundamentally incompatible.
This Dockerfile is explicitly the static-musl binary for the Firecracker
microVM sandbox, so the lean build is the correct artifact here: build with
`--no-default-features` (no bundled embeddings), restoring the pre-#238 feature
set. FTS5 keyword recall works out of the box; dense/hybrid can use an external
embedder. A semantic-search-by-default image would need a glibc base (follow-up).
Also COPY build.rs (added in #238; Cargo now requires it to be present even when
the model-fetch path is gated off under --no-default-features).
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5575ca4 commit 536e7ea
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
3 | 11 | | |
4 | 12 | | |
5 | 13 | | |
6 | 14 | | |
7 | 15 | | |
8 | | - | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
10 | 19 | | |
11 | 20 | | |
| |||
0 commit comments