11# This Dockerfile builds an image containing Mac and Linux/AMD64 versions of
22# the installer layered on top of the cluster-native Linux installer image.
33
4- FROM registry.ci.openshift.org/ocp/4.19:installer-terraform-providers AS providers
54# We copy from the -artifacts images because they are statically linked
65FROM registry.ci.openshift.org/ocp/4.19:installer-kube-apiserver-artifacts AS kas-artifacts
76FROM registry.ci.openshift.org/ocp/4.19:installer-etcd-artifacts AS etcd-artifacts
@@ -13,7 +12,6 @@ ENV GO_COMPLIANCE_EXCLUDE=".*"
1312ARG TAGS=""
1413WORKDIR /go/src/github.com/openshift/installer
1514COPY . .
16- COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/darwin_amd64 terraform/bin/darwin_amd64
1715COPY --from=kas-artifacts /usr/share/openshift/darwin/amd64 cluster-api/bin/darwin_amd64
1816COPY --from=etcd-artifacts /usr/share/openshift/darwin/amd64 cluster-api/bin/darwin_amd64
1917RUN GOOS=darwin GOARCH=amd64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
@@ -23,7 +21,6 @@ ENV GO_COMPLIANCE_EXCLUDE=".*"
2321ARG TAGS=""
2422WORKDIR /go/src/github.com/openshift/installer
2523COPY . .
26- COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/darwin_arm64 terraform/bin/darwin_arm64
2724COPY --from=kas-artifacts /usr/share/openshift/darwin/arm64 cluster-api/bin/darwin_arm64
2825COPY --from=etcd-artifacts /usr/share/openshift/darwin/arm64 cluster-api/bin/darwin_arm64
2926RUN GOOS=darwin GOARCH=arm64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
@@ -33,7 +30,6 @@ ENV GO_COMPLIANCE_EXCLUDE=".*"
3330ARG TAGS=""
3431WORKDIR /go/src/github.com/openshift/installer
3532COPY . .
36- COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/linux_amd64 terraform/bin/linux_amd64
3733COPY --from=kas-artifacts /usr/share/openshift/linux/amd64 cluster-api/bin/linux_amd64
3834COPY --from=etcd-artifacts /usr/share/openshift/linux/amd64 cluster-api/bin/linux_amd64
3935RUN GOOS=linux GOARCH=amd64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
@@ -44,7 +40,6 @@ ARG TAGS=""
4440ARG SKIP_ENVTEST="y"
4541WORKDIR /go/src/github.com/openshift/installer
4642COPY . .
47- COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/linux_arm64 terraform/bin/linux_arm64
4843COPY --from=kas-artifacts /usr/share/openshift/linux/arm64 cluster-api/bin/linux_arm64
4944COPY --from=etcd-artifacts /usr/share/openshift/linux/arm64 cluster-api/bin/linux_arm64
5045RUN GOOS=linux GOARCH=arm64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
0 commit comments