FROM openshift/golang-builder:1.10 AS builder
ENV SOURCE_GIT_COMMIT=7eac3fbddf227a3c8c2ddfe713ee94d1311f8b9c SOURCE_GIT_TAG=7eac3fbd SOURCE_DATE_EPOCH=1557274231
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.4.20190627.121229
ENV SOURCE_GIT_COMMIT=7eac3fbddf227a3c8c2ddfe713ee94d1311f8b9c SOURCE_GIT_TAG=7eac3fbd SOURCE_DATE_EPOCH=1557274231
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.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" \
        io.k8s.display-name="OpenShift cluster-authentication-operator" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-authentication-operator" \
        io.openshift.release.operator="true" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-authentication-operator/commit/7eac3fbddf227a3c8c2ddfe713ee94d1311f8b9c" \
        version="v4.1.4" \
        io.openshift.build.commit.id="7eac3fbddf227a3c8c2ddfe713ee94d1311f8b9c" \
        release="201906271212" \
        io.openshift.tags="openshift"

