Skip to content

Commit ebb86aa

Browse files
Merge pull request #223 from Pensu/arch_neutral
Adding support for other archs than amd64
2 parents 01fad60 + 6790a7b commit ebb86aa

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 vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusterversion.crd.yaml /manifests/
1012
COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusteroperator.crd.yaml /manifests/

0 commit comments

Comments
 (0)