Closed sammcj closed 9 years ago
The --no-install-recommends
probably needs more exploration:
This is partly related to #16, since that is also about reducing the size by limiting the packages installed and this change could affect the plans there.
The apt-get clean
is not necessary, because it is already built in to apt-get update
.
You're totally right about apt-get clean @yosifkit - I didn't spot that in the upstream when I checked - that's really great.
--no-install-recommends can make a pretty large difference with Debian, for example if you install ruby-gems Debian will by default install build-essential which is not only large, but bakes in compilers to your Docker images.
He means specifically for this image; getting a list of exactly which packages are no longer included due to this change would be the first step in properly evaluating it.
Basically, we're looking for the result of diffing the output of "docker run --rm buildpack-deps dpkg --list-selections" from before and after this change.
further reduce image size