docker-rust icon indicating copy to clipboard operation
docker-rust copied to clipboard

Feature: automatically install sccache

Open dmeijboom opened this issue 2 years ago • 2 comments

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!

dmeijboom avatar May 08 '23 06:05 dmeijboom

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.

powerboat9 avatar Sep 02 '23 03:09 powerboat9

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.

dmeijboom avatar Sep 06 '23 15:09 dmeijboom