@@ -5,7 +5,6 @@ ARG VERSION="1.2.6.5"
55ARG DIST_URL="https://github.com/leenooks/phpLDAPadmin/archive/refs/tags/${VERSION}.tar.gz"
66ARG BUILD_DATE
77ARG VCS_REF
8- ARG RUST_PYTHON_VERSION
98
109# Set user and group
1110ARG user=deploy
@@ -14,44 +13,8 @@ ARG group=deploy
1413ENV CONTAINER_SERVICE_DIR="/container/service"
1514ENV FIRST_START_DONE="/container/first-start-done"
1615
17- COPY --from=dclong/rustpython:alpine /usr/local/bin/rustpython /usr/local/bin/rustpython
18-
19- COPY <<-EOT /usr/local/share/sbom/rustpython.spdx.json
20- {
21- "spdxVersion" : "SPDX-2.3" ,
22- "dataLicense" : "CC0-1.0" ,
23- "SPDXID" : "SPDXRef-DOCUMENT" ,
24- "name" : "docker-rustpython" ,
25- "packages" : [
26- {
27- "name" : "rustpython" ,
28- "SPDXID" : "SPDXRef-Package-binary-rustpython-${RUST_PYTHON_VERSION}" ,
29- "versionInfo" : "${RUST_PYTHON_VERSION}" ,
30- "downloadLocation" : "https://hub.docker.com/r/dclong/rustpython" ,
31- "sourceInfo" : "copied from dclong/rustpython:alpine Docker image, source at: https://github.com/RustPython/RustPython" ,
32- "licenseConcluded" : "MIT" ,
33- "licenseDeclared" : "MIT" ,
34- "copyrightText" : "NOASSERTION" ,
35- "description" : "rustpython"
36- }
37- ],
38- "files" : [
39- {
40- "SPDXID" : "SPDXRef-rustpython-${RUST_PYTHON_VERSION}" ,
41- "licenseConcluded" : "MIT" ,
42- "fileName" : "/usr/local/bin/rustpython" ,
43- "fileType" : "BINARY"
44- }
45- ],
46- "relationships" : [
47- {
48- "spdxElementId" : "SPDXRef-Package-binary-rustpython-${RUST_PYTHON_VERSION}" ,
49- "relationshipType" : "CONTAINS" ,
50- "relatedSpdxElement" : "SPDXRef-rustpython-${RUST_PYTHON_VERSION}"
51- }
52- ]
53- }
54- EOT
16+ COPY --from=botsudo/docker-rustpython:latest /usr/local/bin/rustpython /usr/local/bin/rustpython
17+ COPY --from=botsudo/docker-rustpython:latest /usr/local/share/sbom/rustpython.spdx.json /usr/local/share/sbom/rustpython.spdx.json
5518
5619RUN apk add --no-cache --update nginx curl bash musl \
5720 openssl libgcc \
@@ -150,6 +113,7 @@ LABEL org.label-schema.vendor="Sudo-Bot" \
150113 com.docker.extension.publisher-url="https://github.com/sudo-bot" \
151114 \
152115 org.opencontainers.image.title="Docker phpLDAPadmin server" \
116+ org.opencontainers.image.description="A phpLDAPadmin image" \
153117 org.opencontainers.image.authors="williamdes@wdes.fr" \
154118 org.opencontainers.image.url="https://github.com/sudo-bot/docker-phpldapadmin#readme" \
155119 org.opencontainers.image.documentation="https://github.com/sudo-bot/docker-phpldapadmin#readme" \
0 commit comments