FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=3752471e05fb4a7ed923bef281109eae82eb9d75 SOURCE_GIT_TAG=3752471 SOURCE_GIT_URL=https://github.com/openshift/cluster-autoscaler-operator SOURCE_DATE_EPOCH=1575550919 BUILD_VERSION=v4.3.1 BUILD_RELEASE=202002032140
WORKDIR /go/src/github.com/openshift/cluster-autoscaler-operator
COPY . .
ENV NO_DOCKER=1
ENV BUILD_DEST=/go/bin/cluster-autoscaler-operator
RUN unset VERSION && make build

FROM openshift/ose-base:v4.3.1.20200203.214022
ENV SOURCE_GIT_COMMIT=3752471e05fb4a7ed923bef281109eae82eb9d75 SOURCE_GIT_TAG=3752471 SOURCE_GIT_URL=https://github.com/openshift/cluster-autoscaler-operator SOURCE_DATE_EPOCH=1575550919 BUILD_VERSION=v4.3.1 BUILD_RELEASE=202002032140
COPY --from=builder /go/bin/cluster-autoscaler-operator /usr/bin/
COPY --from=builder /go/src/github.com/openshift/cluster-autoscaler-operator/install /manifests
CMD ["/usr/bin/cluster-autoscaler-operator"]

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-autoscaler-operator" \
        com.redhat.component="ose-cluster-autoscaler-operator-container" \
        version="v4.3.1" \
        release="202002032140" \
        io.openshift.build.commit.id="3752471e05fb4a7ed923bef281109eae82eb9d75" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-autoscaler-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-autoscaler-operator/commit/3752471e05fb4a7ed923bef281109eae82eb9d75"

