diff --git a/Dockerfile.rhel b/Dockerfile.rhel new file mode 100644 index 0000000000..c0982de4dd --- /dev/null +++ b/Dockerfile.rhel @@ -0,0 +1,14 @@ +FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-openshift-4.6 AS builder +WORKDIR /go/src/github.com/openshift/machine-api-operator +COPY . . +RUN NO_DOCKER=1 make build + +FROM registry.svc.ci.openshift.org/ocp/4.6:base +COPY --from=builder /go/src/github.com/openshift/machine-api-operator/install manifests +COPY --from=builder /go/src/github.com/openshift/machine-api-operator/bin/machine-api-operator . +COPY --from=builder /go/src/github.com/openshift/machine-api-operator/bin/nodelink-controller . +COPY --from=builder /go/src/github.com/openshift/machine-api-operator/bin/machine-healthcheck . +COPY --from=builder /go/src/github.com/openshift/machine-api-operator/bin/machineset ./machineset-controller +COPY --from=builder /go/src/github.com/openshift/machine-api-operator/bin/vsphere ./machine-controller-manager + +LABEL io.openshift.release.operator true