emk / rust-musl-builder

Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.
Apache License 2.0
1.54k stars 193 forks source link

Experimental: Improve support for `USER root` #100

Closed emk closed 3 years ago

emk commented 4 years ago

This PR attempts to lay the groundwork to address #96. In particular, we install the Rust toolchain globally by abusing rustup.

We still preserve the legacy rust user but we may start encouraging derived Dockerfiles to consider USER root.

This PR also removes ARM support. We want to explore the idea of supporting ARM more reliably using a separate image, but perhaps it would be better to refer those users to one of the Rust cross-compilation toolchains. See #63 for discussion.

Things to do before merging this to master: