Skip to content

Commit ce4a77b

Browse files
committed
chore(docker): add SBOM into the image
1 parent 0fdb27f commit ce4a77b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Dockerfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
1+
# ------------------------------------------------------------------------------
2+
# trivy to generate SBOM
3+
# ------------------------------------------------------------------------------
4+
FROM ghcr.io/aquasecurity/trivy:latest AS trivy
5+
6+
RUN \
7+
trivy image --format spdx-json --output /container.json denoland/deno
8+
9+
# ------------------------------------------------------------------------------
10+
# prod
11+
# ------------------------------------------------------------------------------
112
FROM denoland/deno
2-
LABEL version="v20250117"
13+
LABEL version="v20250313"
314

415
WORKDIR /app
516

617
COPY src/config.ts src/context.ts src/adapter.ts /app/
718
RUN deno cache /app/adapter.ts
819

20+
COPY --from=trivy /container.json /sbom/container.json
21+
RUN deno info /app/adapter.ts --json > /sbom/application-dependencies.json
22+
923
ENV KEYCLOAK_ORIGIN "https://ucs-sso-ng.mydomain.corp"
1024
ENV KEYCLOAK_ORIGIN_INTERNAL ""
1125
ENV KEYCLOAK_REALM "ucs"

0 commit comments

Comments
 (0)