FROM openshift/golang-builder:1.10 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=41 OS_GIT_VERSION=4.1.41-202004130646-66e8675 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=66e8675af14547a1e8d4eae9b426805fd5e98661 SOURCE_GIT_TAG=v0.0.0-154-g66e8675a SOURCE_GIT_URL=https://github.com/openshift/cluster-autoscaler-operator SOURCE_DATE_EPOCH=1576854163 OS_GIT_COMMIT=66e8675 BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
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.1.41.20200413.064634
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=41 OS_GIT_VERSION=4.1.41-202004130646-66e8675 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=66e8675af14547a1e8d4eae9b426805fd5e98661 SOURCE_GIT_TAG=v0.0.0-154-g66e8675a SOURCE_GIT_URL=https://github.com/openshift/cluster-autoscaler-operator SOURCE_DATE_EPOCH=1576854163 OS_GIT_COMMIT=66e8675 BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
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" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        version="v4.1.41" \
        release="202004130646" \
        io.openshift.build.commit.id="66e8675af14547a1e8d4eae9b426805fd5e98661" \
        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/66e8675af14547a1e8d4eae9b426805fd5e98661"

