We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73fc96b + 727fa66 commit e57946aCopy full SHA for e57946a
Dockerfile
@@ -7,9 +7,18 @@ RUN mkdir /.cache \
7
&& chmod -R g+rwX /.cache
8
RUN make
9
10
+FROM alpine:3.19 AS SBOM
11
+WORKDIR /
12
+ADD . /SBOM
13
+RUN apk add --no-cache curl
14
+RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.48.3
15
+RUN trivy fs --format spdx-json --output /sbom.spdx.json /SBOM
16
+RUN trivy sbom /sbom.spdx.json --severity UNKNOWN,HIGH,CRITICAL --exit-code 1
17
+
18
FROM alpine:3.19
19
WORKDIR /fabconnect
20
COPY --from=fabconnect-builder /fabconnect/fabconnect ./
21
ADD ./openapi ./openapi/
22
RUN ln -s /fabconnect/fabconnect /usr/bin/fabconnect
23
+COPY --from=SBOM /sbom.spdx.json /sbom.spdx.json
24
ENTRYPOINT [ "fabconnect" ]
0 commit comments