Closed davechallis closed 6 years ago
After some experimenting, fixed by installing additional packages before compilation, e.g.:
FROM ekidd/rust-musl-builder:1.25.0 AS builder
COPY . ./
RUN sudo apt-get update && sudo apt-get install -y libclang-3.9 clang-3.9 llvm-3.9
RUN sudo chown -R rust:rust /home/rust && cargo build --release
Is this something that is possible using this Docker image?
Currently trying to build something that depends on
findshlibs
(0.4.0), which fails to build using the latest rust-musl-builder image.Minimal example:
Cargo.toml
main.rs
Then building with:
eventually fails with:
So wondering if I can use a custom Dockerfile to make those libraries available when building? Or whether the above is just masking some other issue.