FROM openshift/golang-builder:1.12 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=22 OS_GIT_VERSION=4.2.22-202003020552-c0a5e5e OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=c0a5e5eb5a9e80dd304f4e49066e4bf52708be4a SOURCE_GIT_TAG=c0a5e5e SOURCE_GIT_URL=https://github.com/openshift/cluster-ingress-operator SOURCE_DATE_EPOCH=1578552887 OS_GIT_COMMIT=c0a5e5e BUILD_VERSION=v4.2.22 BUILD_RELEASE=202003020552
WORKDIR /ingress-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.2.22.20200302.055253
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=22 OS_GIT_VERSION=4.2.22-202003020552-c0a5e5e OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=c0a5e5eb5a9e80dd304f4e49066e4bf52708be4a SOURCE_GIT_TAG=c0a5e5e SOURCE_GIT_URL=https://github.com/openshift/cluster-ingress-operator SOURCE_DATE_EPOCH=1578552887 OS_GIT_COMMIT=c0a5e5e BUILD_VERSION=v4.2.22 BUILD_RELEASE=202003020552
COPY --from=builder /ingress-operator/ingress-operator /usr/bin/
COPY manifests /manifests
RUN useradd ingress-operator
USER ingress-operator
ENTRYPOINT ["/usr/bin/ingress-operator"]

LABEL \
        io.openshift.release.operator="true" \
        io.k8s.display-name="OpenShift ingress-operator" \
        io.k8s.description="This is a component of OpenShift Container Platform and manages the lifecycle of ingress controller components." \
        maintainer="Dan Mace <dmace@redhat.com>" \
        name="openshift/ose-cluster-ingress-operator" \
        com.redhat.component="ose-cluster-ingress-operator-container" \
        version="v4.2.22" \
        release="202003020552" \
        io.openshift.build.commit.id="c0a5e5eb5a9e80dd304f4e49066e4bf52708be4a" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-ingress-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-ingress-operator/commit/c0a5e5eb5a9e80dd304f4e49066e4bf52708be4a"

