{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/docker-rust/issues/19","repository_url":"https://api.github.com/repos/rust-lang-nursery/docker-rust","labels_url":"https://api.github.com/repos/rust-lang-nursery/docker-rust/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/docker-rust/issues/19/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/docker-rust/issues/19/events","html_url":"https://github.com/rust-lang-nursery/docker-rust/issues/19","id":299831439,"number":19,"title":"Base images are HUGE.","user":{"login":"thedodd","id":2380740,"avatar_url":"https://avatars1.githubusercontent.com/u/2380740?v=4","gravatar_id":"","url":"https://api.github.com/users/thedodd","html_url":"https://github.com/thedodd","followers_url":"https://api.github.com/users/thedodd/followers","following_url":"https://api.github.com/users/thedodd/following{/other_user}","gists_url":"https://api.github.com/users/thedodd/gists{/gist_id}","starred_url":"https://api.github.com/users/thedodd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedodd/subscriptions","organizations_url":"https://api.github.com/users/thedodd/orgs","repos_url":"https://api.github.com/users/thedodd/repos","events_url":"https://api.github.com/users/thedodd/events{/privacy}","received_events_url":"https://api.github.com/users/thedodd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T19:55:18Z","updated_at":"2018-02-23T20:49:51Z","closed_at":null,"author_association":"NONE","body":"It would be awesome to get an alpine (not sure if we are still blocked on musl) version of an image built, as that could drastically reduce base image size (currently around 477MiB compressed). The build pack base image is around 250MiB compressed, whereas alpine base image is about 2MiB compressed. Currently, the build here is nearly doubling the size of the image.\r\n\r\n**If that is not possible right now**, it would be beneficial to strip out as much bloat from the base image as possible. I've only looked over the dockerfiles briefly, and I would have to investigate further to really see what could be stripped out, to find where the bloat may be coming from.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/docker-rust/issues/comments/368134532","html_url":"https://github.com/rust-lang-nursery/docker-rust/issues/19#issuecomment-368134532","issue_url":"https://api.github.com/repos/rust-lang-nursery/docker-rust/issues/19","id":368134532,"user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars0.githubusercontent.com/u/1455697?v=4","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T20:49:51Z","updated_at":"2018-02-23T20:49:51Z","author_association":"OWNER","body":"An Alpine-based image is blocked on an official MUSL toolchain, which is tracked in #10.\r\n\r\nThe base image we use is [buildpack-deps](https://hub.docker.com/_/buildpack-deps/), which includes a bunch of common build tools and C libraries. This mirrors what other similar images to, like [gcc](https://github.com/docker-library/gcc/blob/0f2605b8a300a1cbd70d244330400e8baf1dde33/7/Dockerfile#L1) and [python](https://github.com/docker-library/python/blob/1dcbfcceba5dc2d3ebf0a414926f2645aec0150e/3.7-rc/stretch/Dockerfile#L7). \r\n\r\nIt looks like the python image also publishes a slim variant based off of `debian:stretch-slim` which seems reasonable to do here as well."}}
{"actor":{"display_login":"sfackler"}}