FROM openshift/golang-builder:1.11 AS builder
ENV SOURCE_GIT_COMMIT=0ea559ca1490d7bea4fb7ee6c3619b7696b2ef49 SOURCE_GIT_TAG=0ea559ca SOURCE_GIT_URL=https://github.com/openshift/cluster-autoscaler-operator SOURCE_DATE_EPOCH=1576781655 BUILD_VERSION=v4.2.19 BUILD_RELEASE=202002101212
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.2.19.20200210.121232
ENV SOURCE_GIT_COMMIT=0ea559ca1490d7bea4fb7ee6c3619b7696b2ef49 SOURCE_GIT_TAG=0ea559ca SOURCE_GIT_URL=https://github.com/openshift/cluster-autoscaler-operator SOURCE_DATE_EPOCH=1576781655 BUILD_VERSION=v4.2.19 BUILD_RELEASE=202002101212
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.2.19" \
        release="202002101212" \
        io.openshift.build.commit.id="0ea559ca1490d7bea4fb7ee6c3619b7696b2ef49" \
        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/0ea559ca1490d7bea4fb7ee6c3619b7696b2ef49"

