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

Avoid storing package cache in Alpine build image #3250

Merged

Conversation

chrisnovakovic
Copy link
Contributor

apk add --no-cache updates the package cache but doesn't store it on the file system after the transaction completes, making the preceding apk update unnecessary.

Copy link
Member

@peterebden peterebden left a comment

Choose a reason for hiding this comment

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

TIL that the flag does an update as well!

`apk add --no-cache` updates the package cache but doesn't store it on
the file system after the transaction completes, making the preceding
`apk update` unnecessary.
@chrisnovakovic chrisnovakovic merged commit 8a9f092 into thought-machine:master Sep 10, 2024
13 of 14 checks passed
@chrisnovakovic chrisnovakovic deleted the alpine-image-no-update branch September 10, 2024 16:17
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