From 5b1d3157c9b2c69cc213ae77290338d52de8ca95 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 13 Nov 2026 14:17:12 +0000 Subject: [PATCH] fix: upgrade distro packages in the final stage 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. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4da015a..6e48b4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -165,6 +165,9 @@ RUN \ strip --strip-unneeded /usr/local/lib/php/extensions/no-debug-non-zts-${PHP_API}/*.so FROM trusted-base AS final + +RUN apk upgrade --no-cache + ARG PHP_API LABEL maintainer="team@appwrite.io"