From dfc62ebbcbbba82434f82d26588d7216def1021c Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Wed, 10 Dec 2025 08:09:15 +0100 Subject: [PATCH] Add label org.opencontainers.image.source --- Dockerfile-alpine-otel.template | 2 ++ Dockerfile-alpine-perl.template | 2 ++ Dockerfile-alpine-slim.template | 1 + Dockerfile-alpine.template | 2 ++ Dockerfile-debian-otel.template | 2 ++ Dockerfile-debian-perl.template | 2 ++ Dockerfile-debian.template | 1 + mainline/alpine-otel/Dockerfile | 2 ++ mainline/alpine-perl/Dockerfile | 2 ++ mainline/alpine-slim/Dockerfile | 1 + mainline/alpine/Dockerfile | 2 ++ mainline/debian-otel/Dockerfile | 2 ++ mainline/debian-perl/Dockerfile | 2 ++ mainline/debian/Dockerfile | 1 + modules/Dockerfile | 1 + modules/Dockerfile.alpine | 1 + stable/alpine-otel/Dockerfile | 2 ++ stable/alpine-perl/Dockerfile | 2 ++ stable/alpine-slim/Dockerfile | 1 + stable/alpine/Dockerfile | 2 ++ stable/debian-otel/Dockerfile | 2 ++ stable/debian-perl/Dockerfile | 2 ++ stable/debian/Dockerfile | 1 + 23 files changed, 38 insertions(+) diff --git a/Dockerfile-alpine-otel.template b/Dockerfile-alpine-otel.template index b870b954..ed02a046 100644 --- a/Dockerfile-alpine-otel.template +++ b/Dockerfile-alpine-otel.template @@ -1,5 +1,7 @@ FROM nginx:%%NGINX_VERSION%%-alpine +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV OTEL_VERSION %%OTEL_VERSION%% RUN set -x \ diff --git a/Dockerfile-alpine-perl.template b/Dockerfile-alpine-perl.template index 6fc37dea..320082ec 100644 --- a/Dockerfile-alpine-perl.template +++ b/Dockerfile-alpine-perl.template @@ -1,5 +1,7 @@ FROM nginx:%%NGINX_VERSION%%-alpine +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + RUN set -x \ && apkArch="$(cat /etc/apk/arch)" \ && nginxPackages="%%PACKAGES%% diff --git a/Dockerfile-alpine-slim.template b/Dockerfile-alpine-slim.template index ff076f09..a10208fd 100644 --- a/Dockerfile-alpine-slim.template +++ b/Dockerfile-alpine-slim.template @@ -1,6 +1,7 @@ FROM alpine:%%ALPINE_VERSION%% LABEL maintainer="NGINX Docker Maintainers " +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" ENV NGINX_VERSION %%NGINX_VERSION%% ENV PKG_RELEASE %%PKG_RELEASE%% diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index bc77dfd6..24b5ad47 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -1,5 +1,7 @@ FROM nginx:%%NGINX_VERSION%%-alpine-slim +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV NJS_VERSION %%NJS_VERSION%% ENV NJS_RELEASE %%NJS_RELEASE%% diff --git a/Dockerfile-debian-otel.template b/Dockerfile-debian-otel.template index 709836c1..c45319dd 100644 --- a/Dockerfile-debian-otel.template +++ b/Dockerfile-debian-otel.template @@ -1,5 +1,7 @@ FROM nginx:%%NGINX_VERSION%% +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV OTEL_VERSION %%OTEL_VERSION%% RUN set -x; \ diff --git a/Dockerfile-debian-perl.template b/Dockerfile-debian-perl.template index 84cf99f6..8e430719 100644 --- a/Dockerfile-debian-perl.template +++ b/Dockerfile-debian-perl.template @@ -1,5 +1,7 @@ FROM nginx:%%NGINX_VERSION%% +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + RUN set -x; \ NGINX_GPGKEY_PATH=/etc/apt/keyrings/nginx-archive-keyring.gpg; \ dpkgArch="$(dpkg --print-architecture)" \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 57abba1a..d964ab68 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -1,6 +1,7 @@ FROM debian:%%DEBIAN_VERSION%%-slim LABEL maintainer="NGINX Docker Maintainers " +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" ENV NGINX_VERSION %%NGINX_VERSION%% ENV NJS_VERSION %%NJS_VERSION%% diff --git a/mainline/alpine-otel/Dockerfile b/mainline/alpine-otel/Dockerfile index 52a5d70f..a64300fb 100644 --- a/mainline/alpine-otel/Dockerfile +++ b/mainline/alpine-otel/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.29.4-alpine +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV OTEL_VERSION 0.1.2 RUN set -x \ diff --git a/mainline/alpine-perl/Dockerfile b/mainline/alpine-perl/Dockerfile index 4f708e84..077c806e 100644 --- a/mainline/alpine-perl/Dockerfile +++ b/mainline/alpine-perl/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.29.4-alpine +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + RUN set -x \ && apkArch="$(cat /etc/apk/arch)" \ && nginxPackages=" \ diff --git a/mainline/alpine-slim/Dockerfile b/mainline/alpine-slim/Dockerfile index 2ae5d7e5..02b8df9b 100644 --- a/mainline/alpine-slim/Dockerfile +++ b/mainline/alpine-slim/Dockerfile @@ -6,6 +6,7 @@ FROM alpine:3.23 LABEL maintainer="NGINX Docker Maintainers " +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" ENV NGINX_VERSION 1.29.4 ENV PKG_RELEASE 1 diff --git a/mainline/alpine/Dockerfile b/mainline/alpine/Dockerfile index 3f4d280b..242af56a 100644 --- a/mainline/alpine/Dockerfile +++ b/mainline/alpine/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.29.4-alpine-slim +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV NJS_VERSION 0.9.4 ENV NJS_RELEASE 1 diff --git a/mainline/debian-otel/Dockerfile b/mainline/debian-otel/Dockerfile index 7db18455..377e6346 100644 --- a/mainline/debian-otel/Dockerfile +++ b/mainline/debian-otel/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.29.4 +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV OTEL_VERSION 0.1.2 RUN set -x; \ diff --git a/mainline/debian-perl/Dockerfile b/mainline/debian-perl/Dockerfile index f1187a14..8238cc34 100644 --- a/mainline/debian-perl/Dockerfile +++ b/mainline/debian-perl/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.29.4 +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + RUN set -x; \ NGINX_GPGKEY_PATH=/etc/apt/keyrings/nginx-archive-keyring.gpg; \ dpkgArch="$(dpkg --print-architecture)" \ diff --git a/mainline/debian/Dockerfile b/mainline/debian/Dockerfile index 140b570b..2b67fc9a 100644 --- a/mainline/debian/Dockerfile +++ b/mainline/debian/Dockerfile @@ -6,6 +6,7 @@ FROM debian:trixie-slim LABEL maintainer="NGINX Docker Maintainers " +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" ENV NGINX_VERSION 1.29.4 ENV NJS_VERSION 0.9.4 diff --git a/modules/Dockerfile b/modules/Dockerfile index 2e77a040..7452c368 100644 --- a/modules/Dockerfile +++ b/modules/Dockerfile @@ -70,6 +70,7 @@ RUN apt-get update \ && echo "BUILT_MODULES=\"$BUILT_MODULES\"" > /tmp/packages/modules.env FROM ${NGINX_FROM_IMAGE} +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" RUN --mount=type=bind,target=/tmp/packages/,source=/tmp/packages/,from=builder \ apt-get update \ && . /tmp/packages/modules.env \ diff --git a/modules/Dockerfile.alpine b/modules/Dockerfile.alpine index 2cdb2936..2faf563b 100644 --- a/modules/Dockerfile.alpine +++ b/modules/Dockerfile.alpine @@ -62,6 +62,7 @@ RUN apk update \ && echo "BUILT_MODULES=\"$BUILT_MODULES\"" > /tmp/packages/modules.env FROM ${NGINX_FROM_IMAGE} +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" RUN --mount=type=bind,target=/tmp/packages/,source=/tmp/packages/,from=builder \ . /tmp/packages/modules.env \ && for module in $BUILT_MODULES; do \ diff --git a/stable/alpine-otel/Dockerfile b/stable/alpine-otel/Dockerfile index 7ca1a94b..8a9fb3e4 100644 --- a/stable/alpine-otel/Dockerfile +++ b/stable/alpine-otel/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.28.0-alpine +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV OTEL_VERSION 0.1.2 RUN set -x \ diff --git a/stable/alpine-perl/Dockerfile b/stable/alpine-perl/Dockerfile index 9676d8bc..bd62d498 100644 --- a/stable/alpine-perl/Dockerfile +++ b/stable/alpine-perl/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.28.0-alpine +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + RUN set -x \ && apkArch="$(cat /etc/apk/arch)" \ && nginxPackages=" \ diff --git a/stable/alpine-slim/Dockerfile b/stable/alpine-slim/Dockerfile index 29bf5ba2..c21371d9 100644 --- a/stable/alpine-slim/Dockerfile +++ b/stable/alpine-slim/Dockerfile @@ -6,6 +6,7 @@ FROM alpine:3.21 LABEL maintainer="NGINX Docker Maintainers " +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" ENV NGINX_VERSION 1.28.0 ENV PKG_RELEASE 1 diff --git a/stable/alpine/Dockerfile b/stable/alpine/Dockerfile index fb0c900a..79c85a4a 100644 --- a/stable/alpine/Dockerfile +++ b/stable/alpine/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.28.0-alpine-slim +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV NJS_VERSION 0.8.10 ENV NJS_RELEASE 1 diff --git a/stable/debian-otel/Dockerfile b/stable/debian-otel/Dockerfile index e4129a43..b166966c 100644 --- a/stable/debian-otel/Dockerfile +++ b/stable/debian-otel/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.28.0 +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + ENV OTEL_VERSION 0.1.2 RUN set -x; \ diff --git a/stable/debian-perl/Dockerfile b/stable/debian-perl/Dockerfile index bda0e1b8..e4d67d68 100644 --- a/stable/debian-perl/Dockerfile +++ b/stable/debian-perl/Dockerfile @@ -5,6 +5,8 @@ # FROM nginx:1.28.0 +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" + RUN set -x; \ NGINX_GPGKEY_PATH=/etc/apt/keyrings/nginx-archive-keyring.gpg; \ dpkgArch="$(dpkg --print-architecture)" \ diff --git a/stable/debian/Dockerfile b/stable/debian/Dockerfile index 99f34952..cce23c4a 100644 --- a/stable/debian/Dockerfile +++ b/stable/debian/Dockerfile @@ -6,6 +6,7 @@ FROM debian:bookworm-slim LABEL maintainer="NGINX Docker Maintainers " +LABEL org.opencontainers.image.source="https://github.com/nginx/nginx" ENV NGINX_VERSION 1.28.0 ENV NJS_VERSION 0.8.10