From 1161612ef2c9af51b6db488b797f953adc03a12d Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 10 Oct 2022 16:19:53 +0200 Subject: [PATCH] dockerfile: add proper OCI annotations --- Dockerfile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 786546d..acac83d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,21 @@ FROM archlinux:base-devel ARG BUILD_DATE ARG VCS_REF -LABEL description="Hourly updated archlinux base image" - -LABEL org.label-schema.build-date=$BUILD_DATE \ +# as per https://github.com/opencontainers/image-spec/blob/main/annotations.md, +# keep Label Schema labels for backward compatibility. +LABEL description="hourly updated archlinux base(-devel) image" \ + org.label-schema.build-date=$BUILD_DATE \ org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux.git" \ org.label-schema.vcs-ref=$VCS_REF \ - org.label-schema.license=GPL-3.0 + org.label-schema.license=GPL-3.0 \ + org.opencontainers.image.title="docker-archlinux" \ + org.opencontainers.image.description="hourly updated archlinux base(-devel) image" \ + org.opencontainers.image.created=$BUILD_DATE \ + org.opencontainers.image.authors=wanderer \ + org.opencontainers.image.url="https://git.dotya.ml/wanderer/docker-archlinux.git" \ + org.opencontainers.image.source="https://git.dotya.ml/wanderer/docker-archlinux.git" \ + org.opencontainers.image.revision=$VCS_REF \ + org.opencontainers.image.licenses=GPL-3.0 # if you need the WORKAROUND for glibc 2.33 and old Docker # have a look at https://git.dotya.ml/wanderer/docker-archlinux/commit/bd4c5abe4dca475965548cb8332ef9b9d2a4953c