Skip to content

Cleaning up apt cache to optimize disk space - #6

Closed
josephpage wants to merge 3 commits into
docker-library:docker-v2_1_2from
josephpage:dockerfile-cleanup
Closed

josephpage wants to merge 3 commits into
docker-library:docker-v2_1_2from
josephpage:dockerfile-cleanup

Conversation

@josephpage

Copy link
Copy Markdown

I tested it and got this :
before : 1.561 GB
after : 1.529 GB
All this 32MB is unnecessary files, as recommended in Debian mkimage :
"delete all the apt list files since they're big and get stale quickly
this forces "apt-get update" in dependent images, which is also good"
https://github.com/docker/docker/blob/master/contrib/mkimage/debootstrap

@yosifkit

yosifkit commented Aug 8, 2014

Copy link
Copy Markdown
Member

LGTM.
/cc @tianon.

@tianon

tianon commented Aug 13, 2014

Copy link
Copy Markdown
Member

@yosifkit do we need to manual merge this into our refactor?

@tianon

tianon commented Aug 13, 2014

Copy link
Copy Markdown
Member

(I'm +1 on the change, for the record; sorry for my delay in reviewing.)

@tianon tianon closed this in #7 Aug 14, 2014
@josephpage
josephpage deleted the dockerfile-cleanup branch August 15, 2014 07:18
chrissolanilla pushed a commit to chrissolanilla/CSolanillaBio that referenced this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants