Skip to content

Commit

Permalink
add org.opencontainers.image url and source labels to dockerfiles (#6962
Browse files Browse the repository at this point in the history
)

* add org.opencontainers.image url and source labels to dockerfiles

Signed-off-by: Sankalp Yengaldas <[email protected]>
  • Loading branch information
sankalp-at-gh authored Oct 16, 2024
1 parent c8b4eb1 commit f76a13f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ COPY --from=charts \
/charts/

FROM scratch AS runtime
LABEL org.opencontainers.image.url="https://hub.docker.com/r/rancher/rke2-runtime"
LABEL org.opencontainers.image.source="https://github.com/rancher/rke2"
COPY --from=runtime-collect / /

FROM ubuntu:24.04 AS test
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ RUN mv CalicoWindows/cni/calico-ipam.exe rancher/
RUN mv CalicoWindows/confd confd/

FROM scratch AS windows-runtime
LABEL org.opencontainers.image.url="https://hub.docker.com/r/rancher/rke2-runtime"
LABEL org.opencontainers.image.source="https://github.com/rancher/rke2"
COPY --from=containerd /usr/local/bin/*.exe /bin/
COPY --from=windows-runtime-collect ./rancher/* /bin/
COPY --from=windows-runtime-collect ./confd/ /bin/confd
Expand Down

0 comments on commit f76a13f

Please sign in to comment.