-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathContainerfile-extractor
More file actions
32 lines (26 loc) · 1.06 KB
/
Containerfile-extractor
File metadata and controls
32 lines (26 loc) · 1.06 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
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9 AS rust-builder
ARG TARGETARCH
RUN dnf update -y && \
dnf -y install gcc make wget rust-toolset rustfmt && \
dnf clean all && \
rm -rf /var/cache/dnf/*
WORKDIR /workspace/extractor
COPY extractor .
RUN make TARGETARCH=${TARGETARCH}
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS go-builder
WORKDIR /workspace/fingerprints
COPY fingerprints .
ARG GO_LDFLAGS=""
ENV GOEXPERIMENT=strictfipsruntime
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on make build
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
RUN dnf update -y && \
dnf -y install cri-tools && \
dnf clean all && \
rm -rf /var/cache/dnf/*
COPY --from=rust-builder /workspace/extractor/config/ /
COPY --from=rust-builder /workspace/extractor/target/release/extractor_server /extractor_server
COPY --from=rust-builder /workspace/extractor/target/release/coordinator /coordinator
# Copy fingerprints written in Go
COPY --from=go-builder --chmod=755 /workspace/fingerprints/bin/fpr_* /
ENTRYPOINT [ "/extractor_server" ]