Skip to content

fix: upgrade distro packages in the final stage - #277

Merged
ChiragAgg5k merged 1 commit into
mainfrom
chore-apk-upgrade
Nov 13, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
chore-apk-upgrade

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Adds RUN apk upgrade --no-cache right after the final stage FROM, so a rebuild picks up Alpine package fixes even when the base image digest hasn't moved. This is what lets the daily fixable-CVE rebuild job in appwrite/renovate-config cut a patch release when a fresh build scans cleaner than the published tag.

Related: appwrite-labs/cloud#6671

Packages from the base image and from `apk add` only pick up Alpine security fixes when the build upgrades them, so a rebuild without a base digest change shipped the same vulnerable versions. The daily CVE rebuild job in appwrite/renovate-config relies on a fresh build picking up those fixes.
@appwrite

appwrite Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The added command is valid for this Alpine-based stage, and the CI build job builds the Docker image.

The final Docker image stage now upgrades installed Alpine packages before installing docker-cli. This allows fresh image builds to include package updates from the configured Alpine repositories without changing the pinned base-image digest.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
Dockerfile Added an Alpine package upgrade step in the final image stage.

Reviewed 6aa2b42 · Details · Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

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.

1 participant