- 
                Notifications
    You must be signed in to change notification settings 
- Fork 102
Image cleanup #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image cleanup #254
Conversation
fee7592    to
    d13c961      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through the commits, everything looked reasonable. Left one question.
        
          
                Dockerfile-debian.template
              
                Outdated
          
        
      | rm rustup-init; \ | ||
| chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \ | ||
| \ | ||
| apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Dockerfile-slim, you remove wget, here you remove.. everything? Or what does apt-get purge without an argument do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was mistaken about what this change did, and am going to drop it in favor of getting the other changes in.
I had hoped that apt-get purge -y --auto-remove wget would remove wget, anything unnecessary, as well as package metadata, but it appears it doesn't.
d13c961    to
    7791344      
    Compare
  
    
While looking at some of
docker-library'sDockerfiles, I realized that our currentDockerfileformat could be improved, and we should try to roughly match theirs. This PR is a collection of changes that hopefully make things better.References:
docker/28/cli/Dockerfilegcc/15/Dockerfilejulia/1.11/trixie/Dockerfilephp/8.4/trixie/cli/Dockerfilepostgres/18/trixie/Dockerfilepypy/3.11/trixie/Dockerfile--progress=dot:gigacc @Kobzol, @sfackler