aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.stcrashreceiver
diff options
context:
space:
mode:
authorDerRockWolf <50499906+DerRockWolf@users.noreply.github.com>2023-11-14 06:46:14 +0000
committerGitHub <noreply@github.com>2023-11-14 07:46:14 +0100
commite988978fa199ccb8e130e1eea344666ab5953681 (patch)
tree73bd287f791334cfce4b6a94a25da97218e75214 /Dockerfile.stcrashreceiver
parentd5deede7a181d9b4cc251bab238c096fef8ce29f (diff)
downloadsyncthing-e988978fa199ccb8e130e1eea344666ab5953681.tar.gz
syncthing-e988978fa199ccb8e130e1eea344666ab5953681.zip
Add `org.opencontainers.image.source` to Dockerfiles (#9211)
### Purpose The OCI image spec specifies well-defined [annotations](https://github.com/opencontainers/image-spec/blob/main/annotations.md) that can be added to images. Theses annotations can then be used by other tools to gather more information of an image. This PR adds the `org.opencontainers.image.source` to allow tools such as [renovate](https://github.com/renovatebot/renovate) to find the release notes of a give version. ~~I've only done this change for `Dockerfile`. Should I also add the label to the other dockerfiles?~~ I've now added the source annotations to all `Dockerfile`s & action workflows. ### Testing None, change was done by following the [renovate documentation](https://docs.renovatebot.com/modules/datasource/docker/).
Diffstat (limited to 'Dockerfile.stcrashreceiver')
-rw-r--r--Dockerfile.stcrashreceiver8
1 files changed, 8 insertions, 0 deletions
diff --git a/Dockerfile.stcrashreceiver b/Dockerfile.stcrashreceiver
index a29eb1de5..42e855da4 100644
--- a/Dockerfile.stcrashreceiver
+++ b/Dockerfile.stcrashreceiver
@@ -1,6 +1,14 @@
FROM alpine
ARG TARGETARCH
+LABEL org.opencontainers.image.authors="The Syncthing Project" \
+ org.opencontainers.image.url="https://syncthing.net" \
+ org.opencontainers.image.documentation="https://docs.syncthing.net" \
+ org.opencontainers.image.source="https://github.com/syncthing/syncthing" \
+ org.opencontainers.image.vendor="The Syncthing Project"
+ org.opencontainers.image.licenses="MPL-2.0"
+ org.opencontainers.image.title="Syncthing Crash Receiver"
+
EXPOSE 8080
COPY stcrashreceiver-linux-${TARGETARCH} /bin/stcrashreceiver