FROM openshift/golang-builder:rhel_8_golang_1.15 AS builder
ENV __doozer=update BUILD_RELEASE=202106160913.p0.git.1111d1c BUILD_VERSION=v4.7.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=7 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.7.0-202106160913.p0.git.1111d1c SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=1111d1c OS_GIT_VERSION=4.7.0-202106160913.p0.git.1111d1c-1111d1c SOURCE_DATE_EPOCH=1623834211 SOURCE_GIT_COMMIT=1111d1c47568f2abbda1b5aed454611460f2ede4 SOURCE_GIT_TAG=1111d1c4 SOURCE_GIT_URL=https://github.com/openshift/cluster-ingress-operator 
WORKDIR /ingress-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.7.0-202106090743.p0.git.0e45f63
ENV __doozer=update BUILD_RELEASE=202106160913.p0.git.1111d1c BUILD_VERSION=v4.7.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=7 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.7.0-202106160913.p0.git.1111d1c SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=1111d1c OS_GIT_VERSION=4.7.0-202106160913.p0.git.1111d1c-1111d1c SOURCE_DATE_EPOCH=1623834211 SOURCE_GIT_COMMIT=1111d1c47568f2abbda1b5aed454611460f2ede4 SOURCE_GIT_TAG=1111d1c4 SOURCE_GIT_URL=https://github.com/openshift/cluster-ingress-operator 
COPY --from=builder /ingress-operator/ingress-operator /usr/bin/
COPY manifests /manifests
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" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Routing" \
        release="202106160913.p0.git.1111d1c" \
        io.openshift.build.commit.id="1111d1c47568f2abbda1b5aed454611460f2ede4" \
        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/1111d1c47568f2abbda1b5aed454611460f2ede4" \
        version="v4.7.0"

