liuchong / docker-rustup

Automated builded images for rust-lang with rustup, "the ultimate way to install RUST"
https://store.docker.com/community/images/liuchong/rustup/
MIT License
93 stars 14 forks source link

MUSL libraries are only installed for the default toolchain, not others (like nightly) #1

Closed shepmaster closed 8 years ago

shepmaster commented 8 years ago

For example:

docker run -it --rm -v my-code:/code --workdir /code liuchong/rustup:musl \
  rustup run nightly cargo build --target=x86_64-unknown-linux-musl --release

As a workaround, I am doing

rustup default nightly
rustup target add x86_64-unknown-linux-musl
cargo build --target=x86_64-unknown-linux-musl --release
liuchong commented 8 years ago

It should be ok now, please try, thanks for the reporting :new_moon_with_face:

shepmaster commented 8 years ago

Thank you!