3 ms·
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
by a_t48 5y ago
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).