docker-library / busybox

Docker Official Image packaging for Busybox
http://busybox.net
396 stars 127 forks source link

added some more cleanup tweaks #79

Closed Rajpratik71 closed 4 years ago

Rajpratik71 commented 4 years ago

More cleanup tweaks using

  1. apt-get clean

  2. 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.

yosifkit commented 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