FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=81e991480d14e9d2056811b783bffac978db34b2 SOURCE_GIT_TAG=81e99148 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-apiserver-operator SOURCE_DATE_EPOCH=1580862729 BUILD_VERSION=v4.3.2 BUILD_RELEASE=202002112006
WORKDIR /go/src/github.com/openshift/cluster-openshift-apiserver-operator
COPY . .
RUN GODEBUG=tls13=1 go build ./cmd/cluster-openshift-apiserver-operator

FROM openshift/ose-base:v4.3.2.20200211.200621
ENV SOURCE_GIT_COMMIT=81e991480d14e9d2056811b783bffac978db34b2 SOURCE_GIT_TAG=81e99148 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-apiserver-operator SOURCE_DATE_EPOCH=1580862729 BUILD_VERSION=v4.3.2 BUILD_RELEASE=202002112006
COPY --from=builder /go/src/github.com/openshift/cluster-openshift-apiserver-operator/cluster-openshift-apiserver-operator /usr/bin/
COPY manifests /manifests
COPY vendor/github.com/openshift/api/operator/v1/*_openshift-apiserver-operator_*.crd.yaml manifests/

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-openshift-apiserver-operator" \
        com.redhat.component="ose-cluster-openshift-apiserver-operator-container" \
        version="v4.3.2" \
        release="202002112006" \
        io.openshift.build.commit.id="81e991480d14e9d2056811b783bffac978db34b2" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-openshift-apiserver-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-openshift-apiserver-operator/commit/81e991480d14e9d2056811b783bffac978db34b2"

