Hacker News new | ask | show | jobs
by baylisscg 2379 days ago
The initial container is a contrived worst case example. Not necessarily a bad idea when you want to make a point but most of the gains are from not doing things you’re told not to do on page 2 of the docker tutorial.

Also, while vanilla Dockerfiles do need to carefully clean up after themselves BuildKit offers you a friendlier way of handling this with ‘--mount=type=cache’ on the appropriate directories