Skip to content

Commit 6790a7b

Browse files
committed
Adding support for other archs than amd64
1 parent 019411a commit 6790a7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
22
WORKDIR /go/src/github.com/openshift/cluster-version-operator
33
COPY . .
4-
RUN hack/build-go.sh
4+
RUN hack/build-go.sh; \
5+
mkdir -p /tmp/build; \
6+
cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator
57

68
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
7-
COPY --from=builder /go/src/github.com/openshift/cluster-version-operator/_output/linux/amd64/cluster-version-operator /usr/bin/
9+
COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
810
COPY install /manifests
911
COPY bootstrap /bootstrap
1012
ENTRYPOINT ["/usr/bin/cluster-version-operator"]

0 commit comments

Comments
 (0)