FROM openshift/golang-builder:1.11 AS builder
ENV SOURCE_GIT_COMMIT=2728ac11a08492543680a5910349e679fb47f08f SOURCE_DATE_EPOCH=1560901595 BUILD_VERSION=v4.1.18 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-apiserver-operator SOURCE_GIT_TAG=2728ac11 BUILD_RELEASE=201909201915
WORKDIR /go/src/github.com/openshift/cluster-openshift-apiserver-operator
COPY . .
RUN go build ./cmd/cluster-openshift-apiserver-operator

FROM openshift/ose-base:v4.1.18.20190920.191508
ENV SOURCE_GIT_COMMIT=2728ac11a08492543680a5910349e679fb47f08f SOURCE_DATE_EPOCH=1560901595 BUILD_VERSION=v4.1.18 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-apiserver-operator SOURCE_GIT_TAG=2728ac11 BUILD_RELEASE=201909201915
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/2728ac11a08492543680a5910349e679fb47f08f" \
        version="v4.1.18" \
        io.openshift.build.commit.id="2728ac11a08492543680a5910349e679fb47f08f" \
        release="201909201915"

