From 3e4515e62abd90c66de5466828553dabeb1f6e90 Mon Sep 17 00:00:00 2001 From: forcalas Date: Thu, 3 Oct 2024 04:51:07 +0200 Subject: [PATCH] Add Open Container Image annotations as labels to Docker image (#5323) --- docker/ci/x86_64/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/ci/x86_64/Dockerfile b/docker/ci/x86_64/Dockerfile index 96610b7d219..2c7fb0d8d7b 100644 --- a/docker/ci/x86_64/Dockerfile +++ b/docker/ci/x86_64/Dockerfile @@ -23,5 +23,13 @@ RUN apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev \ && apk del .build-deps ENV STASH_CONFIG_FILE=/root/.stash/config.yml +# Basic build-time metadata as defined at https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys +LABEL org.opencontainers.image.title="Stash" \ + org.opencontainers.image.description="An organizer for your porn, written in Go." \ + org.opencontainers.image.url="https://stashapp.cc" \ + org.opencontainers.image.documentation="https://docs.stashapp.cc" \ + org.opencontainers.image.source="https://github.com/stashapp/stash" \ + org.opencontainers.image.licenses="AGPL-3.0" + EXPOSE 9999 CMD ["stash"]