8000 Add org.label-schema.* and org.opencontainers.image.* · sudo-bot/docker-rustpython@1e0b794 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e0b794

Browse files
committed
Add org.label-schema.* and org.opencontainers.image.*
1 parent 2cc2ca2 commit 1e0b794

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docker/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ FROM alpine:3.17 as builder
44
WORKDIR /workdir
55

66
ARG RUST_PYTHON_VERSION="0.2.0"
7+
ARG BUILD_DATE
8+
ARG VCS_REF
9+
710
ENV CARGO_HOME="/workdir"
811
ENV CARGO_INSTALL_ROOT="/workdir"
912
# armv6 and armv7 fix
@@ -79,4 +82,29 @@ EOT
7982
RUN rustpython --version && \
8083
echo -e "import json\nprint(json.dumps([{'server': [{'tls': False}]}]))" | rustpython -q
8184

85+
# Metadata
86+
LABEL org.label-schema.vendor="Sudo-Bot" \
87+
org.label-schema.url="https://github.com/sudo-bot/docker-rustpython#readme" \
88+
org.label-schema.name="docker-rustpython" \
89+
org.label-schema.description="RustPython into Docker" \
90+
org.label-schema.version=${RUST_PYTHON_VERSION} \
91+
org.label-schema.vcs-url="https://github.com/sudo-bot/docker-rustpython.git" \
92+
org.label-schema.vcs-ref=${VCS_REF} \
93+
org.label-schema.build-date=${BUILD_DATE} \
94+
org.label-schema.docker.schema-version="1.0" \
95+
\
96+
com.docker.extension.publisher-url="https://github.com/sudo-bot" \
97+
\
98+
org.opencontainers.image.title="RustPython into Docker" \
99+
org.opencontainers.image.authors="williamdes@wdes.fr" \
100+
org.opencontainers.image.url="https://github.com/sudo-bot/docker-rustpython#readme" \
101+
org.opencontainers.image.documentation="https://github.com/sudo-bot/docker-rustpython#readme" \
102+
org.opencontainers.image.source="https://github.com/sudo-bot/docker-rustpython" \
103+
org.opencontainers.image.vendor="Sudo-Bot" \
104+
org.opencontainers.image.licenses="MPL-2.0" \
105+
org.opencontainers.image.created=${BUILD_DATE} \
106+
org.opencontainers.image.version=${RUST_PYTHON_VERSION} \
107+
org.opencontainers.image.revision=${VCS_REF} \
108+
org.opencontainers.image.ref.name="${RUST_PYTHON_VERSION}"
109+
82110
ENTRYPOINT [ "/usr/local/bin/rustpython" ]

0 commit comments

Comments
 (0)
0