From f7a44b3d2ce9d20a484aef39545299f72802c20d Mon Sep 17 00:00:00 2001 From: Weston Steimel Date: Fri, 21 Jan 2022 21:58:10 +0000 Subject: [PATCH] convert from deprecated org.label-schema to OCI Annotations in Dockerfile (#763) Signed-off-by: Weston Steimel --- Dockerfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7843e305e..e9541538b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,13 +16,14 @@ ARG BUILD_VERSION ARG VCS_REF ARG VCS_URL -LABEL org.label-schema.schema-version="1.0" -LABEL org.label-schema.build-date=$BUILD_DATE -LABEL org.label-schema.name="syft" -LABEL org.label-schema.description="CLI tool and library for generating a Software Bill of Materials from container images and filesystems" -LABEL org.label-schema.vcs-url=$VCS_URL -LABEL org.label-schema.vcs-ref=$VCS_REF -LABEL org.label-schema.vendor="Anchore, Inc." -LABEL org.label-schema.version=$BUILD_VERSION +LABEL org.opencontainers.image.created=$BUILD_DATE +LABEL org.opencontainers.image.title="syft" +LABEL org.opencontainers.image.description="CLI tool and library for generating a Software Bill of Materials from container images and filesystems" +LABEL org.opencontainers.image.source=$VCS_URL +LABEL org.opencontainers.image.revision=$VCS_REF +LABEL org.opencontainers.image.vendor="Anchore, Inc." +LABEL org.opencontainers.image.version=$BUILD_VERSION +LABEL org.opencontainers.image.licenses="Apache-2.0" + ENTRYPOINT ["/syft"]