3 ms·
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
by paulfurtado 9y 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.