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
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:
[ ] Figure out what we want to do with ARM.
[ ] Wait until a new Rust release, and merge then, to minimize disruption caused by overwriting latest, etc., with something incompatible.
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 considerUSER 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
:latest
, etc., with something incompatible.