FROM openshift/golang-builder:1.10 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=37 OS_GIT_VERSION=4.1.37-202003021622-b90d4dd OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=b90d4dd08929fe1db6a399bfe52e8566f6c7a1d7 SOURCE_GIT_TAG=b90d4dd0 SOURCE_GIT_URL=https://github.com/openshift/cluster-authentication-operator SOURCE_DATE_EPOCH=1574331808 OS_GIT_COMMIT=b90d4dd BUILD_VERSION=v4.1.37 BUILD_RELEASE=202003021622
WORKDIR /go/src/github.com/openshift/cluster-authentication-operator
COPY . .
RUN go build -tags="ocp" -o authentication-operator ./cmd/authentication-operator

FROM openshift/ose-base:v4.1.37.20200302.165904
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=37 OS_GIT_VERSION=4.1.37-202003021622-b90d4dd OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=b90d4dd08929fe1db6a399bfe52e8566f6c7a1d7 SOURCE_GIT_TAG=b90d4dd0 SOURCE_GIT_URL=https://github.com/openshift/cluster-authentication-operator SOURCE_DATE_EPOCH=1574331808 OS_GIT_COMMIT=b90d4dd BUILD_VERSION=v4.1.37 BUILD_RELEASE=202003021622
COPY --from=builder /go/src/github.com/openshift/cluster-authentication-operator/authentication-operator /usr/bin/
COPY manifests /manifests
ENTRYPOINT ["/usr/bin/authentication-operator"]

LABEL \
        io.k8s.display-name="OpenShift cluster-authentication-operator" \
        io.k8s.description="This is a component of OpenShift and manages cluster authentication settings" \
        com.redhat.component="ose-cluster-authentication-operator-container" \
        maintainer="OpenShift Auth Team <aos-auth-team@redhat.com>" \
        name="openshift/ose-cluster-authentication-operator" \
        version="v4.1.37" \
        io.openshift.tags="openshift" \
        io.openshift.release.operator="true" \
        release="202003021622" \
        io.openshift.build.commit.id="b90d4dd08929fe1db6a399bfe52e8566f6c7a1d7" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-authentication-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-authentication-operator/commit/b90d4dd08929fe1db6a399bfe52e8566f6c7a1d7"

