perf(docker): pre-build Rust binaries to avoid 5-hour QEMU emulation

Cross-compile Rust volume server natively for amd64/arm64 using musl
targets in a separate job, then inject pre-built binaries into the
Docker build. This replaces the ~5-hour QEMU-emulated cargo build
with ~15 minutes of native cross-compilation.

The Dockerfile falls back to building from source when no pre-built
binary is found, preserving local build compatibility.
This commit is contained in:
Chris Lu
2026-04-02 16:57:20 -07:00
parent a4b896a224
commit b8236a10d1
3 changed files with 114 additions and 9 deletions

View File