rust-lang / rustwide

Execute your code on the Rust ecosystem.
Apache License 2.0
180 stars 41 forks source link

Allow using an arbitrary Docker image instead of forcing crates-build-env #32

Closed pietroalbini closed 4 years ago

pietroalbini commented 4 years ago

While Rustwide technically already allows to run a build with an arbitrary container image, it forces you to use (a fork of) crates-build-env as it integrated with it (through the MAP_USER_ID environment variable) to drop privileges inside the container.

This PR lifts that restriction by using Docker's --user flag to drop privileges, instead of the entrypoint in crates-build-env.

pietroalbini commented 4 years ago

:tada: