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

