From 7278db24e48b01058e2ef84fe323e7e3ccb0c73e Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 11:46:00 +0000 Subject: [PATCH] build(docker): Bump Alpine build and runtime images Bump the build stage from rust:1.91.1-alpine3.20, which is end of life, to rust:1.91.1-alpine3.22, and the runtime base from Alpine 3.22.7 to 3.22.8. Also run apk upgrade in the runtime stage so OpenSSL fixes that land after the pinned base, such as CVE-2026-124709, ship with the image. Co-Authored-By: Alex Tarasov --- CHANGELOG.md | 1 + Dockerfile | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c26472c019..2784fa97df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Internal Changes - (docker) Bump the Docker image base from Alpine 3.22.0 to 3.22.7, whose `ca-certificates` already drops the distrusted eMudhra/emSign roots, and remove the `ca-certificates` version pin. +- (docker) Bump the Docker build image from `rust:1.91.1-alpine3.20` (end of life) to `rust:1.91.1-alpine3.22`, bump the runtime base from Alpine 3.22.7 to 3.22.8, and upgrade base packages at build time so OpenSSL fixes such as CVE-2026-124709 ship without waiting for a new base image. ## 3.8.2 diff --git a/Dockerfile b/Dockerfile index 7b91d070b1..a4b9933a42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.91.1-alpine3.20@sha256:79a1bf22657dda835c5e2cf08e3aba4099ed36af3f28167103feb688a3e2604b AS sentry-build +FROM rust:1.91.1-alpine3.22@sha256:8efbfb788786eeb127adc581394349c5fb567712156e0f8c2e499acadbc23756 AS sentry-build # Install build dependencies RUN apk add musl-dev perl openssl-dev make @@ -20,9 +20,11 @@ RUN touch src/main.rs && cargo build --release --features managed # Copy the compiled binary to a target-independent location so it can be picked up later RUN cp target/release/sentry-cli /usr/local/bin/sentry-cli -FROM alpine:3.22.7@sha256:2e0b81d60597f449baa56dc25d355367869d2dca4cd57e866f1e2b52af3eb55f +FROM alpine:3.22.8@sha256:49340b346798875b5592e5d420241f2f9cfba5f47e62ebb1446a1b34734e898f WORKDIR /work -RUN apk add --no-cache ca-certificates +# Upgrade base packages so security fixes published after the pinned base +# image (such as OpenSSL updates) ship without waiting for a new base tag +RUN apk upgrade --no-cache && apk add --no-cache ca-certificates COPY ./docker-entrypoint.sh / COPY --from=sentry-build /usr/local/bin/sentry-cli /bin ENTRYPOINT ["/docker-entrypoint.sh"]