Skip to content

Commit 88f8877

Browse files
committed
Add SBOM and move to /usr/bin/
1 parent 48c9f03 commit 88f8877

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

docker/Dockerfile

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,55 @@
1+
# syntax=docker/dockerfile:1
12
FROM php:8.1-cli-alpine
23

34
ARG RELEASE_VERSION=latest
45

56
# Metadata params
67
ARG VCS_REF
78
ARG BUILD_DATE
9+
ARG DIST_URL="https://phar.phpunit.de/phpunit.phar"
810

9-
ADD https://phar.phpunit.de/phpunit.phar /bin/phpunit
10-
RUN chmod +x /bin/phpunit && /bin/phpunit --version
11+
ADD $DIST_URL /usr/bin/phpunit
12+
RUN chmod +x /usr/bin/phpunit && phpunit --version
13+
14+
COPY <<-EOT /usr/local/share/sbom/phpunit.spdx.json
15+
{
16+
"spdxVersion": "SPDX-2.3",
17+
"dataLicense": "CC0-1.0",
18+
"SPDXID": "SPDXRef-DOCUMENT",
19+
"name": "docker-phpunit",
20+
"packages": [
21+
{
22+
"name": "phpunit",
23+
"SPDXID": "SPDXRef-Package-phpunit",
24+
"versionInfo": "${VERSION}",
25+
"originator": "Person: Deon George",
26+
"downloadLocation": "${DIST_URL}",
27+
"sourceInfo": "dowloaded from phpunit.de phars",
28+
"licenseConcluded": "BSD-3-Clause",
29+
"licenseDeclared": "BSD-3-Clause",
30+
"copyrightText": "NOASSERTION",
31+
"description": "phpunit"
32+
}
33+
],
34+
"externalRefs": [
35+
{
36+
"referenceCategory": "SECURITY",
37+
"referenceLocator": "cpe:2.3:a:phpunit_project:phpunit",
38+
"referenceType": "cpe23Type"
39+
},
40+
{
41+
"referenceCategory": "SECURITY",
42+
"referenceLocator": "cpe:/a:phpunit_project:phpunit",
43+
"referenceType": "cpe22Type"
44+
},
45+
{
46+
"referenceCategory": "PACKAGE_MANAGER",
47+
"referenceLocator": "pkg:deb/debian/phpunit",
48+
"referenceType": "purl"
49+
}
50+
]
51+
}
52+
EOT
1153

1254
COPY entrypoint.sh /entrypoint.sh
1355

0 commit comments

Comments
 (0)