Skip to content
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

Reduce docker image size #31

Merged
merged 1 commit into from
Sep 20, 2020
Merged

Conversation

navarroaxel
Copy link
Contributor

@navarroaxel navarroaxel commented Sep 12, 2020

I reduced the image 340MB because we should rm -rf /var/lib/apt/lists/* every time the apt update is run, otherwise that cache keeps in the previous layers.

Copy link

@drewwestrick drewwestrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm this works, I think its a good idea to add unzip, and the git cleanup is a nice optimization.

  • Image size: 1.1GB -> 752MB

@tcardonne tcardonne merged commit 537c97f into tcardonne:master Sep 20, 2020
@tcardonne
Copy link
Owner

Thanks for your contribution!

This was referenced Sep 20, 2020
@navarroaxel navarroaxel deleted the reduce-size branch September 20, 2020 12:25
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