Hacker News new | ask | show | jobs
by mayank 3718 days ago
The layered fs that Docker uses is based on additive snapshots, so removing tools at the end will paradoxically increase your image size with a useless snapshot.
1 comments

You can do everything within a single RUN statement to avoid that.
Yes, but at the expense of readability, development speed, and incremental updates to images (where typically the dependencies layer changes slower than your target code).