File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -63,15 +63,21 @@ mv /var/tmp/"$KSNAME"-docker.tar.xz $BUILDROOT/docker/
6363
6464# Create a Dockerfile to go along with the rootfs.
6565
66+ BUILDDATE_RFC3339=" $( date -d $BUILDDATE --rfc-3339=seconds) "
6667cat << EOF > $BUILDROOT /docker/Dockerfile
6768FROM scratch
6869ADD $KSNAME -docker.tar.xz /
6970
70- LABEL org.label-schema.schema-version="1.0" \\
71+ LABEL \\
72+ org.label-schema.schema-version="1.0" \\
7173 org.label-schema.name="CentOS Base Image" \\
7274 org.label-schema.vendor="CentOS" \\
7375 org.label-schema.license="GPLv2" \\
74- org.label-schema.build-date="$BUILDDATE "
76+ org.label-schema.build-date="$BUILDDATE " \\
77+ org.opencontainers.image.title="CentOS Base Image" \\
78+ org.opencontainers.image.vendor="CentOS" \\
79+ org.opencontainers.image.licenses="GPL-2.0-only" \\
80+ org.opencontainers.image.created="$BUILDDATE_RFC3339 "
7581
7682CMD ["/bin/bash"]
7783EOF
You can’t perform that action at this time.
0 commit comments