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

Suggestion Toolchain size can be reduced by trimming fat debug symbols

Open HK416-is-all-you-need opened this issue 3 years ago • 0 comments

Subj. Running something like:

find /usr/local/rustup/ -type f -executable -exec strip --strip-unneeded {} 
find /usr/local/rustup/ -name *.so -exec strip --strip-unneeded {} 
find /usr/local/rustup/ -name *.rlib -exec strip -d {} 
find /usr/local/rustup/ -name *.a -exec strip -d {}

Produces image with size 604MB which means 211MB compressed on docker hub (instead of 250 for official image) for ultimate slim-alpine image

HK416-is-all-you-need avatar Jan 12 '22 04:01 HK416-is-all-you-need