Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,17 @@ ENV NGINX_VERSION=${NGINX_VERSION}
# "apk upgrade" matters: the Alpine base image is only rebuilt for Alpine
# point releases, so the packages it ships (musl, zlib, ...) can be behind
# the repository's security fixes. "apk add" alone would keep them.
#
# musl: CVE-2026-107891 is patched in Alpine 3.24's musl 1.2.6-r3, but
# vulnerability databases (Docker Scout among them) list the fix as
# 1.2.6-r6, the version in Alpine 3.25, and flag the image. musl 1.2.6-r6
# has the same ABI and no dependencies, so it is taken from the 3.25
# repository for this one command. Remove MUSL_REPOSITORY once the base
# image is alpine:3.25 or later.
ARG MUSL_REPOSITORY=https://dl-cdn.alpinelinux.org/alpine/v3.25/main
RUN apk upgrade --no-cache \
&& apk add --no-cache --repository "${MUSL_REPOSITORY}" \
'musl>=1.2.6-r6' 'musl-utils>=1.2.6-r6' \
&& addgroup -g 101 -S nginx \
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx \
&& apk add --no-cache \
Expand Down