Skip to content

Commit 1c756ae

Browse files
committed
Use new OCI labels
1 parent a9256ca commit 1c756ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/containerbuild.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ cat << EOF > $BUILDROOT/docker/Dockerfile
6868
FROM scratch
6969
ADD $KSNAME-docker.tar.xz /
7070
71-
LABEL org.label-schema.schema-version="1.0" \\
72-
org.label-schema.name="CentOS Base Image" \\
73-
org.label-schema.vendor="CentOS" \\
74-
org.label-schema.license="GPLv2" \\
75-
org.label-schema.build-date="$BUILDDATE_RFC3339"
71+
LABEL \\
72+
org.opencontainers.image.title="CentOS Base Image" \\
73+
org.opencontainers.image.vendor="CentOS" \\
74+
org.opencontainers.image.licenses="GPL-2.0-only" \\
75+
org.opencontainers.image.created="$BUILDDATE_RFC3339"
7676
7777
CMD ["/bin/bash"]
7878
EOF

0 commit comments

Comments
 (0)