docker-rust
docker-rust copied to clipboard
Suggestion Toolchain size can be reduced by trimming fat debug symbols
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