Closed PeterDaveHello closed 9 months ago
Very nice. Thank you!
I will rename your new Dockerfile
to Dockerfile-minimized
and keep the old Docketfile
so people can still use the full Dockerfile
. The old Dockerfile
is useful when editing the source and rebuilding the source code to do some tests and for debugging, and when the ugrep/tests
files are still needed. Also vim
, wget
and unzip
should not be needed in a minimized container.
By properly handling the layers and temp, the image size and build speed are significantly improved!
Here's the size change before and after the optimization: