We reduced our Docker images by 60% with –no-install-recommends
Here at Canonical, we use Dockerfiles on a daily basis for all our web projects. Something that caught our attention recently was the amount of space that we were using for each Docker image, and we realized that we were installing more dependencies than we needed.
In this article, I’ll explain how we improved our image build time and reduced the image size by using the flag
--no-install-recommendsin our Dockerfiles.
Source: We reduced our Docker images by 60% with –no-install-recommends, an article by Francisco Jiménez Cabrera.