File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ USER 1001
88RUN npm install
99RUN npm run build
1010
11+ FROM alpine:3.19 AS SBOM
12+ WORKDIR /
13+ ADD . /SBOM
14+ RUN apk add --no-cache curl
15+ RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.48.3
16+ RUN trivy fs --format spdx-json --output /sbom.spdx.json /SBOM
17+ RUN trivy sbom /sbom.spdx.json --severity UNKNOWN,HIGH,CRITICAL --exit-code 1
18+
19+
1120FROM node:16-alpine3.15
1221WORKDIR /firefly-dataexchange-https
1322COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/package.json /firefly-dataexchange-https
@@ -17,5 +26,6 @@ RUN npm install --production
1726EXPOSE 3000
1827EXPOSE 3001
1928USER 1001
29+ COPY --from=SBOM /sbom.spdx.json /sbom.spdx.json
2030
2131CMD [ "node" , "./build/index.js" ]
You can’t perform that action at this time.
0 commit comments