Re:What Exactly is Docker?
by fctorial on Saturday February 01, 2020 @03:38PM
(#22213079)
Why do you want to avoid multiple layers. Performance?
[ Parent
| on HN ]
Build performance, image size and deployment speed mostly.
Each 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.