3 ms·
Why do you want to avoid multiple layers. Performance?
by fctorial 7y ago
Why do you want to avoid multiple layers. Performance?
- lbotos 7y agoSize of the resulting container is my understanding.
- orf 7y agoBuild performance, image size and deployment speed mostly.
- kortex 7y agoEach layer is a write only operation. So if you `RUN some_build.sh` and then `RUN rm junk`, you basically do nothing to reduce the final image size. So you see a lot of like `RUN some_build.sh && rm -rf junk`. There's some overhead with each layer as well.