rust-lang / docker-rust

The official Docker images for Rust
430 stars 89 forks source link

Feature: automatically install sccache #143

Open dmeijboom opened 1 year ago

dmeijboom commented 1 year ago

It would be great if sccache would be pre-installed in the Rust docker images. The sccache binary is less than 7MB which would increase the size of the latest slim-buster image from 254MB to ~ 260MB. By default it should be disabled and enabling can be done by setting the RUSTC_WRAPPER environment variable.

I can make a PR to add the necessary changes but I would like to know if it's something that the Rust team would approve. Thanks!

powerboat9 commented 10 months ago

I'm not very familiar with docker, but couldn't you just add sccache to your own images? It looks like the installation process is fairly short.

dmeijboom commented 10 months ago

I'm not very familiar with docker, but couldn't you just add sccache to your own images? It looks like the installation process is fairly short.

Yes, I could do that. In fact, that's what we already do. It just feels like it should be part of the default set of packages installed in the rust docker image.