Hacker News new | ask | show | jobs
by paulfurtado 3158 days ago
Every RUN statement creates a new layer in the image. Best practice for image size and io performance is to use the lowest number of layers possible.

That said, recent versions of docker do have the ability to squash layers at the end of a build which could give the best of both worlds.