-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (33 loc) · 1.7 KB
/
Dockerfile
File metadata and controls
44 lines (33 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.24 AS build
WORKDIR /src/syft
# openshift-golang-builder sets GOFLAGS=-mod=vendor, unset it (we don't vendor dependencies)
ENV GOFLAGS=""
COPY go.mod go.sum .
RUN go mod download
COPY . .
RUN ./build-syft-binary.sh
FROM registry.access.redhat.com/ubi9/ubi-micro:9.6-1752751762@sha256:666b64ba2670d356b03dd977fe1931c35fd624add9d8ef57e9dbd8f2a47118ba
ENV SYFT_CHECK_FOR_APP_UPDATE=false
# create the /tmp dir, which is needed for image content cache
WORKDIR /tmp
COPY --from=build /src/syft/dist/syft /usr/local/bin/syft
LABEL org.opencontainers.image.title="syft"
LABEL org.opencontainers.image.description="CLI tool and library for generating a Software Bill of Materials from container images and filesystems"
LABEL org.opencontainers.image.vendor="Red Hat, Inc."
LABEL org.opencontainers.image.licenses="Apache-2.0"
# required per https://github.com/release-engineering/rhtap-ec-policy/blob/main/data/rule_data.yml
# TODO: set up in Bugzilla
LABEL com.redhat.component="syft"
LABEL version="1.29.0"
# TODO: document the need to bump this on every re-release of the same version
LABEL release="1"
LABEL name="rh-syft-tech-preview/syft-rhel9"
LABEL cpe="cpe:/a:redhat:trusted_application_pipeline:1.0::el9"
LABEL io.k8s.display-name="syft"
LABEL summary="syft"
LABEL description="CLI tool and library for generating a Software Bill of Materials from container images and filesystems"
LABEL io.k8s.description="CLI tool and library for generating a Software Bill of Materials from container images and filesystems"
LABEL vendor="Red Hat, Inc."
LABEL url="https://github.com/redhat-appstudio/rh-syft"
LABEL distribution-scope="public"
ENTRYPOINT ["/usr/local/bin/syft"]