News for hackers. Stuff that matters.
Re:`COPY –chmod` reduced the size of my container image by 35% by hericium on Saturday March 26, 2022 @05:53AM (#30810536)
`apt` runs during the creation of 1-3 VM images per architecture and not during creation of dozens of container images based on each VM image.

When we have VM images upon which all our usual Docker images were successfully built, we trust it more than `FROM busybox/alpine/ubuntu` with following Docker builds. I've detailed the process in a neighboring comment[1] but you're right that it doesn't suit all workflows.

[1] https://news.ycombinator.com/item?id=30810251

Re:`COPY –chmod` reduced the size of my container image by 35% by orf on Saturday March 26, 2022 @10:03AM (#30811859)
For AMIs (and other VM images) it might make more sense. With containers? Not so much. And with a distributed socket image caching layer it makes even less sense.