News for hackers. Stuff that matters.
Re:Optimizing Docker image size and why it matters by a_t48 on Thursday January 06, 2022 @06:13PM (#29831966)
Downside - squash makes for longer pulls from the image repository, which can matter for large images or slow connections (you keep build layers but now have no caching for consumers of the image). There's various tricks to be pulled that don't use squash - I've had the most luck putting multiple commands into a buildkit stage, then mounting the results of that stage and copying the output in (either by manually getting the list of files, or using rysnc to figure it out for me).

There are no comments on this comment yet.