Hacker News new | ask | show | jobs
by zmmmmm 289 days ago
you append it to the end of the docker file so that the previous image is still valid with its cached build steps
1 comments

And just keep accreting new layers indefinitely?
Docker re-uses layers as needed and can detect when a new layer needs to be added. It's not like images grow in size without bound each time something is changed in the Dockerfile.