From 5cca637a3dc334994c413e2c5fe3293cc80c93b1 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 30 Dec 2021 16:33:13 +0100 Subject: [PATCH] root: add opencontainer labels to dockerfiles Signed-off-by: Jens Langhammer --- Dockerfile | 4 ++++ ldap.Dockerfile | 4 ++++ proxy.Dockerfile | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index 47a2a0016..cbb708c84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,10 @@ RUN go build -o /work/authentik ./cmd/server/main.go # Stage 4: Run FROM docker.io/python:3.10.1-slim-bullseye +LABEL org.opencontainers.image.url https://goauthentik.io +LABEL org.opencontainers.image.description goauthentik.io Main server image, see https://goauthentik.io for more info. +LABEL org.opencontainers.image.source https://github.com/goauthentik/authentik + WORKDIR / ARG GIT_BUILD_HASH diff --git a/ldap.Dockerfile b/ldap.Dockerfile index 485016d07..368c7b4ee 100644 --- a/ldap.Dockerfile +++ b/ldap.Dockerfile @@ -10,6 +10,10 @@ RUN go build -o /go/ldap ./cmd/ldap # Stage 2: Run FROM gcr.io/distroless/static-debian11:debug +LABEL org.opencontainers.image.url https://goauthentik.io +LABEL org.opencontainers.image.description goauthentik.io LDAP outpost, see https://goauthentik.io for more info. +LABEL org.opencontainers.image.source https://github.com/goauthentik/authentik + ARG GIT_BUILD_HASH ENV GIT_BUILD_HASH=$GIT_BUILD_HASH diff --git a/proxy.Dockerfile b/proxy.Dockerfile index fde6c132a..c4b2865dc 100644 --- a/proxy.Dockerfile +++ b/proxy.Dockerfile @@ -19,6 +19,10 @@ RUN go build -o /go/proxy ./cmd/proxy # Stage 3: Run FROM gcr.io/distroless/static-debian11:debug +LABEL org.opencontainers.image.url https://goauthentik.io +LABEL org.opencontainers.image.description goauthentik.io Proxy outpost image, see https://goauthentik.io for more info. +LABEL org.opencontainers.image.source https://github.com/goauthentik/authentik + ARG GIT_BUILD_HASH ENV GIT_BUILD_HASH=$GIT_BUILD_HASH