Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smaller images #14

Closed
xoac opened this issue Jun 12, 2018 · 2 comments
Closed

smaller images #14

xoac opened this issue Jun 12, 2018 · 2 comments
Labels

Comments

@xoac
Copy link
Contributor

xoac commented Jun 12, 2018

I am wondering why this images are so big:

For example I think we don't need this:

rm -rf /root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/
root@8340dacc30e8:~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu# du -skh *
48M     bin
16K     etc
570M    lib
237M    share

Next question is here, maybe there are libs we don't need (and never need for musl target)?:

root@8340dacc30e8:~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib# du -skh *
4.0K    components
48K     etc
4.0K    manifest-cargo-x86_64-unknown-linux-gnu
4.0K    manifest-rust-docs-x86_64-unknown-linux-gnu
8.0K    manifest-rust-std-x86_64-unknown-linux-gnu
4.0K    manifest-rust-std-x86_64-unknown-linux-musl
4.0K    manifest-rustc-x86_64-unknown-linux-gnu
260K    multirust-channel-manifest.toml
4.0K    multirust-config.toml
4.0K    rust-installer-version
405M    x86_64-unknown-linux-gnu
85M     x86_64-unknown-linux-musl
@messense
Copy link
Member

I think we can try to remove useless resources in the image, pull requests are welcome.

@xoac
Copy link
Contributor Author

xoac commented Jun 20, 2018

I have tried to reove some libs from 405M x86_64-unknown-linux-gnu but its looks they are used :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants