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

Remove package litter after each install to shrink layer sizes #51792

Merged
merged 2 commits into from May 12, 2024

Conversation

dhh
Copy link
Member

@dhh dhh commented May 11, 2024

Each layer is stored independently, so ensuring that the two apt-get runs we have don't balloon with package litter is more efficient than just removing all of it for the final image build.

@dhh dhh requested a review from jeremy May 11, 2024 16:26
@rails-bot rails-bot bot added the railties label May 11, 2024
@dhh
Copy link
Member Author

dhh commented May 11, 2024

Unrelated build error:

image

@dhh dhh merged commit d539810 into main May 12, 2024
5 of 6 checks passed
@dhh dhh deleted the shrink-dockerfile-layers branch May 12, 2024 00:39
fractaledmind pushed a commit to fractaledmind/rails that referenced this pull request May 13, 2024
…#51792)

* Remove package litter after each install to shrink layer sizes

* Need a refresh on the index when the cache is gone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant