FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=76ae60eb1baa4496a5097c3be282873f99ea70d3 SOURCE_GIT_TAG=76ae60eb SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-apiserver-operator SOURCE_DATE_EPOCH=1567763417 BUILD_VERSION=v4.2.21 BUILD_RELEASE=202002240343
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.2.21.20200224.034357
ENV SOURCE_GIT_COMMIT=76ae60eb1baa4496a5097c3be282873f99ea70d3 SOURCE_GIT_TAG=76ae60eb SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-apiserver-operator SOURCE_DATE_EPOCH=1567763417 BUILD_VERSION=v4.2.21 BUILD_RELEASE=202002240343
COPY --from=builder /go/src/github.com/openshift/cluster-openshift-apiserver-operator/cluster-openshift-apiserver-operator /usr/bin/
COPY manifests /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.2.21" \
        release="202002240343" \
        io.openshift.build.commit.id="76ae60eb1baa4496a5097c3be282873f99ea70d3" \
        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/76ae60eb1baa4496a5097c3be282873f99ea70d3"

