Skip to content

Avoid storing package cache in Alpine build image#3250

Merged
chrisnovakovic merged 1 commit intothought-machine:masterfrom
chrisnovakovic:alpine-image-no-update
Sep 10, 2024
Merged

Avoid storing package cache in Alpine build image#3250
chrisnovakovic merged 1 commit intothought-machine:masterfrom
chrisnovakovic:alpine-image-no-update

Conversation

@chrisnovakovic
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@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
@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