@@ -4,6 +4,9 @@ FROM alpine:3.17 as builder
4
4
WORKDIR /workdir
5
5
6
6
ARG RUST_PYTHON_VERSION="0.2.0"
7
+ ARG BUILD_DATE
8
+ ARG VCS_REF
9
+
7
10
ENV CARGO_HOME="/workdir"
8
11
ENV CARGO_INSTALL_ROOT="/workdir"
9
12
# armv6 and armv7 fix
79
82
RUN rustpython --version && \
80
83
echo -e "import json\n print(json.dumps([{'server': [{'tls': False}]}]))" | rustpython -q
81
84
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
+
82
110
ENTRYPOINT [ "/usr/local/bin/rustpython" ]
0 commit comments