File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
2
-
1
+ FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 AS builder-rhel8
3
2
ENV GOPATH /go
4
3
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
5
-
6
4
WORKDIR /src
5
+ COPY . .
6
+ RUN make build/registry cross
7
7
8
+ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
9
+ ENV GOPATH /go
10
+ ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
11
+ WORKDIR /src
8
12
COPY . .
9
13
RUN make build/registry cross
10
14
@@ -13,9 +17,12 @@ RUN CGO_ENABLED=0 go build -mod=vendor -tags netgo -ldflags "-w" ./vendor/github
13
17
14
18
FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
15
19
20
+ COPY --from=builder-rhel8 /src/bin/opm /bin/registry/opm-rhel8
21
+
16
22
COPY --from=builder /src/bin/* /bin/registry/
17
23
COPY --from=builder /src/grpc-health-probe /bin/grpc_health_probe
18
24
25
+
19
26
RUN ln -s /bin/registry/* /bin
20
27
21
28
RUN mkdir /registry
You can’t perform that action at this time.
0 commit comments