Skip to content

Commit

Permalink
Set org.opencontainers.image.source label in Dockerfile
Browse files Browse the repository at this point in the history
As documented in the OCI Image Format,
org.opencontainers.image.source[1] identifies an image's source
repository. This is purely for documentation purposes. It does however
help tools such as Renovate[2] to find the changelogs when a new Traggo
version is released. The changelogs would then be included in the PR
Renovate creates.

[1]: https://github.com/opencontainers/image-spec/blob/5325ec48851022d6ded604199a3566254e72842a/annotations.md#L24
[2]: https://docs.renovatebot.com/modules/datasource/docker/#description
  • Loading branch information
dmarcoux committed Dec 19, 2024
1 parent a87b588 commit c83bce6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM scratch
LABEL org.opencontainers.image.source="https://github.com/traggo/server"
WORKDIR /opt/traggo
COPY traggo /opt/traggo
EXPOSE 3030
Expand Down

0 comments on commit c83bce6

Please sign in to comment.