diff --git a/Dockerfile b/Dockerfile index 5156c6aaa..c9dce17fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,7 +88,9 @@ LABEL name="RustFS" \ url="https://rustfs.com" \ license="Apache-2.0" -RUN apk update && \ +# Upgrade base-image packages so published images pick up security fixes +# (e.g. openssl/libssl3 CVEs) without waiting for a new Alpine point release. +RUN apk upgrade --no-cache && \ apk add --no-cache ca-certificates coreutils curl COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ diff --git a/Dockerfile.glibc b/Dockerfile.glibc index e837b8570..a790abed6 100644 --- a/Dockerfile.glibc +++ b/Dockerfile.glibc @@ -93,7 +93,10 @@ LABEL name="RustFS" \ url="https://rustfs.com" \ license="Apache-2.0" -RUN apt-get update && apt-get install -y --no-install-recommends \ +# Upgrade base-image packages so published images pick up security fixes +# (e.g. tar/gzip/perl CVEs) without waiting for a new Ubuntu point release. +RUN apt-get update && apt-get upgrade -y \ + && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ && rm -rf /var/lib/apt/lists/* diff --git a/Dockerfile.source b/Dockerfile.source index 2054405dc..e5827b89c 100644 --- a/Dockerfile.source +++ b/Dockerfile.source @@ -223,6 +223,7 @@ LABEL name="RustFS (dev-local)" \ RUN set -eux; \ export DEBIAN_FRONTEND=noninteractive; \ apt-get update; \ + apt-get upgrade -y; \ apt-get install -y --no-install-recommends \ ca-certificates \ curl \