FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=9416571f9de98516e9bb13e3d9276259adf99aff SOURCE_DATE_EPOCH=1578922839 BUILD_VERSION=v4.3.0 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-apiserver-operator SOURCE_GIT_TAG=9416571f BUILD_RELEASE=202001211731
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.0.20200121.173126
ENV SOURCE_GIT_COMMIT=9416571f9de98516e9bb13e3d9276259adf99aff SOURCE_DATE_EPOCH=1578922839 BUILD_VERSION=v4.3.0 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-apiserver-operator SOURCE_GIT_TAG=9416571f BUILD_RELEASE=202001211731
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 \
        com.redhat.component="ose-cluster-openshift-apiserver-operator-container" \
        name="openshift/ose-cluster-openshift-apiserver-operator" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-openshift-apiserver-operator" \
        io.openshift.release.operator="true" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-openshift-apiserver-operator/commit/9416571f9de98516e9bb13e3d9276259adf99aff" \
        version="v4.3.0" \
        io.openshift.build.commit.id="9416571f9de98516e9bb13e3d9276259adf99aff" \
        release="202001211731"

