dockerfile: add proper OCI annotations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
237b72628a
commit
9f3dd8af68
12
Dockerfile
12
Dockerfile
@ -4,10 +4,20 @@ FROM immawanderer/archlinux:linux-amd64
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
|
# as per https://github.com/opencontainers/image-spec/blob/main/annotations.md,
|
||||||
|
# keep Label Schema labels for backward compatibility.
|
||||||
LABEL org.label-schema.build-date=$BUILD_DATE \
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||||
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-cdev.git" \
|
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-cdev.git" \
|
||||||
org.label-schema.vcs-ref=$VCS_REF \
|
org.label-schema.vcs-ref=$VCS_REF \
|
||||||
org.label-schema.license=GPL-3.0
|
org.label-schema.license=GPL-3.0 \
|
||||||
|
org.opencontainers.image.title="docker-archlinux-cdev" \
|
||||||
|
org.opencontainers.image.description="container image for C development" \
|
||||||
|
org.opencontainers.image.created=$BUILD_DATE \
|
||||||
|
org.opencontainers.image.authors=wanderer \
|
||||||
|
org.opencontainers.image.url="https://git.dotya.ml/wanderer/docker-archlinux-cdev.git" \
|
||||||
|
org.opencontainers.image.source="https://git.dotya.ml/wanderer/docker-archlinux-cdev.git" \
|
||||||
|
org.opencontainers.image.revision=$VCS_REF \
|
||||||
|
org.opencontainers.image.licenses=GPL-3.0
|
||||||
|
|
||||||
RUN pacman --version && \
|
RUN pacman --version && \
|
||||||
\
|
\
|
||||||
|
Loading…
Reference in New Issue
Block a user