rust-cross / rust-musl-cross

Docker images for compiling static Rust binaries using musl-cross
MIT License
639 stars 70 forks source link

Persist TARGET value in the image #12

Closed tonyo closed 6 years ago

tonyo commented 6 years ago

Hi @messense, many thanks for the useful images!

I think it would be useful to persist the image's TARGET in the image itself, so there's no need to use some ugly workarounds (path parsing, reading from config files, etc.) to get the TARGET value.

The reason for picking a different variable name (RUST_MUSL_CROSS_TARGET) is to avoid possible collisions and unwanted side-effects.

messense commented 6 years ago

Thanks!