-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Cleanup cache after bundle install
#645
Comments
bundle install
Is there no flags or env var to tell Bundler to not save those I think setting an env var to tell Bundler to not keep those files would be a good fix. I do see these cache files as well after
|
@eregon here is a ticket for Bunder rubygems/rubygems#7163. It was created a year ago with no progress How about the It would help me with another edge case: reducing a gem size (wkhtmltopdf_binary_gem) by removing binary files for unused platforms. Due to this gem + bundler cache, the whole ruby install cache weight 1Gb instead of 100Mb |
What do you mean by |
here an example:
or maybe name it |
Hi, I noticed that the cache size is double what all gems in my project weigh. It seems like it's due to
${BUNDLE_PATH}/ruby/*/cache/*.gem
files. But I don't think we need them afterbundle install
is finished. Or am I missing something?I was thinking about adding a config param like
prune-bundle-cache: true
that would runrm -rf ${BUNDLE_PATH}/ruby/*/cache
afterbundle install
Rails already does it https://github.com/rails/rails/blob/9e9f80778abb38b8d884d456594d6b6fa683c773/railties/lib/rails/generators/rails/app/templates/Dockerfile.tt#L57
WDYT?
The text was updated successfully, but these errors were encountered: