gentoo-docker-images icon indicating copy to clipboard operation
gentoo-docker-images copied to clipboard

Reduce size of images by shipping a slim image without "unneeded" files

Open eli-schwartz opened this issue 6 months ago • 5 comments

$ docker run --rm -it gentoo/stage3 du -sh /
1.2G	/

It should be possible to slim this up a bit.

36M	/usr/share/doc
3.2M	/usr/share/gtk-doc
3.7M	/usr/share/info
65M	/usr/share/man
71M	/usr/share/locale

We could use INSTALL_MASK for this when creating the initial image, let's call it ":slim" for now, then restore it in a second layer and create a new image for the exceptional case where someone actually wants this info in a docker container.

eli-schwartz avatar Aug 14 '24 16:08 eli-schwartz