diff --git a/build/Dockerfile b/build/Dockerfile
index f546c15de4..e5bb1d2dad 100644
--- a/build/Dockerfile
+++ b/build/Dockerfile
@@ -11,7 +11,7 @@ RUN make build
 
 FROM golang:1.23 AS ca-certs-provider
 
-FROM alpine:3.20 AS capabilizer
+FROM alpine:3.21 AS capabilizer
 RUN apk add --no-cache libcap
 
 FROM capabilizer AS local-capabilizer
diff --git a/build/Dockerfile.nginxplus b/build/Dockerfile.nginxplus
index 7005e22fe0..c1905a71f2 100644
--- a/build/Dockerfile.nginxplus
+++ b/build/Dockerfile.nginxplus
@@ -5,7 +5,7 @@ FROM scratch AS nginx-files
 ADD --link --chown=101:1001 https://cs.nginx.com/static/keys/nginx_signing.rsa.pub nginx_signing.rsa.pub
 
 
-FROM alpine:3.20
+FROM alpine:3.21
 
 ARG NGINX_PLUS_VERSION=R33
 ARG NJS_DIR