From 8f858829eddaf7dc19eded8e0d6214731d4a1ca3 Mon Sep 17 00:00:00 2001 From: Tobias Karch Date: Mon, 22 Sep 2025 18:38:25 +0200 Subject: [PATCH] Add OpenContainers labels to Dockerfile.release --- changelog/unreleased/pull-5523 | 6 ++++++ docker/Dockerfile.release | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 changelog/unreleased/pull-5523 diff --git a/changelog/unreleased/pull-5523 b/changelog/unreleased/pull-5523 new file mode 100644 index 000000000..51cfd2063 --- /dev/null +++ b/changelog/unreleased/pull-5523 @@ -0,0 +1,6 @@ +Enhancement: Add OpenContainers labels to Dockerfile.release + +The restic Docker image now includes labels from the OpenContainers Annotations Spec. +This information can be used by third party services. + +https://github.com/restic/restic/pull/5523 diff --git a/docker/Dockerfile.release b/docker/Dockerfile.release index 42302f203..615f4aec8 100644 --- a/docker/Dockerfile.release +++ b/docker/Dockerfile.release @@ -12,6 +12,12 @@ RUN mv /output/restic_${TARGETOS}_${TARGETARCH} /output/restic FROM alpine:latest +LABEL org.opencontainers.image.title="restic" +LABEL org.opencontainers.image.description="Fast, secure, efficient backup program" +LABEL org.opencontainers.image.url="https://restic.net" +LABEL org.opencontainers.image.documentation="https://restic.readthedocs.io" +LABEL org.opencontainers.image.source="https://github.com/restic/restic" + COPY --from=helper /output/restic /usr/bin RUN apk add --no-cache ca-certificates fuse openssh-client tzdata jq