Closed Rajpratik71 closed 4 years ago
Same as https://github.com/docker-library/gcc/pull/64#issuecomment-593666277.
As for the --no-install-recommends
, while it is important for smaller images, these builder Dockerfiles are not the busybox
image; they are just used to build the tar.xz
root filesystems found in the dist-*
branches. The Busybox image is built from the plain Dockerfile
, like this one from the current dist-amd64
branch with its tar.xz
More cleanup tweaks using
apt-get clean
rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*
removing downloaded packages and packages list will free up some space ,
results in smaller image size.