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

Use `apk --no-cache' on alpine images #144

Merged
merged 1 commit into from
Jun 6, 2016
Merged

Use `apk --no-cache' on alpine images #144

merged 1 commit into from
Jun 6, 2016

Conversation

mcornella
Copy link
Contributor

As suggested on jessfraz/blog#15 (comment), I bring you this super PR. I think apt-get could be similarly improved, but I haven't found any official doc for doing something like apk does.


This enables us to remove the following patterns that required a rm -rf /var/cache/apk:

  • apk update
  • apk add --update
  • apk add --update-cache

Supported since alpine 3.3.

This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
@jessfraz
Copy link
Owner

jessfraz commented Jun 6, 2016

Nice passed the CI thanks!

@jessfraz jessfraz merged commit 7ac4881 into jessfraz:master Jun 6, 2016
@jessfraz
Copy link
Owner

jessfraz commented Jun 6, 2016

Apt-get unfortunately doesn't have the same options as apk it's a little harder to advance that technology, much like apk didn't have those options to begin with either :)

@mcornella mcornella deleted the feature/no-cached-installs branch June 6, 2016 08:10
@mcornella
Copy link
Contributor Author

Thank you! 😊

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.

2 participants