News for hackers. Stuff that matters.
Re:`COPY –chmod` reduced the size of my container image by 35% by bigpod on Saturday March 26, 2022 @08:31AM (#30811301)
basicly what docker-slim does it basicly checks what your program is opening/ using(using simular system as strace) and what it does open/use is then copied to a new image. And how can get those kinds of numbers, basicly it removes parts of rootFS that are not required which is basicly your base images standard files like /etc /home /usr /root..., it also removes all development dependancies, source code and other cruft you might have copied in for use during build or simular.
Re:`COPY –chmod` reduced the size of my container image by 35% by 28304283409234 on Saturday March 26, 2022 @11:46AM (#30812870)
While absolutely genius, it would be more awesome if we could shift this to the left. And have dpkg or apt, or something new, only fetch and place those binaries that are needed.
Re:`COPY –chmod` reduced the size of my container image by 35% by bigpod on Saturday March 26, 2022 @07:51PM (#30816420)
while in theory possible it would require a whole lot of change.

Also like kyle said apt and alike(all current package managers) cant generaly deal on file per file, basis package is as is all files included, so this would require a new package manager(or old one) with packages being a single file with no dependancies for specific package. This would require new base images if we used dockerfiles and you would need to know every library every binary your program needs. While on other hand leaving in all the cruft some copy in like READMEs LICENSE files and so on.

Benefit of docker-slim is that it is in many ways just a line in your already predefined CI/CD pipeline, therefore its just another step likely just working with already preexisting technologies you might use in your pipeline.

Re:`COPY –chmod` reduced the size of my container image by 35% by kylequest on Saturday March 26, 2022 @04:19PM (#30815016)
it'll be possible to do something like that in the future where docker-slim will generate a spec that describes what your system and app package managers need to install. Using the standard package managers will be tricky for partial package installs though because it's pretty common that the app doesn't need the whole package. Even now docker-slim gives you a list of files your app needs, but the info is too low level to be usable by the standard package management tools.
Re:`COPY –chmod` reduced the size of my container image by 35% by salawat on Sunday March 27, 2022 @11:19PM (#30826781)
So nasically program footprint as a namespace? Hrrm.