FROM openshift/golang-builder:1.12 AS builder
ENV __doozer=update BUILD_RELEASE=202010141211.p0 BUILD_VERSION=v4.3.40 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=40 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.40-202010141211.p0 SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=bc78df7 OS_GIT_VERSION=4.3.40-202010141211.p0-bc78df7 SOURCE_DATE_EPOCH=1599061574 SOURCE_GIT_COMMIT=bc78df73a234485eaf300884d02fef693d62b9be SOURCE_GIT_TAG=bc78df73 SOURCE_GIT_URL=https://github.com/openshift/cluster-policy-controller 
WORKDIR /go/src/github.com/openshift/cluster-policy-controller
COPY . .
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.3.40.20201014.125201
ENV __doozer=update BUILD_RELEASE=202010141211.p0 BUILD_VERSION=v4.3.40 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=40 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.40-202010141211.p0 SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=bc78df7 OS_GIT_VERSION=4.3.40-202010141211.p0-bc78df7 SOURCE_DATE_EPOCH=1599061574 SOURCE_GIT_COMMIT=bc78df73a234485eaf300884d02fef693d62b9be SOURCE_GIT_TAG=bc78df73 SOURCE_GIT_URL=https://github.com/openshift/cluster-policy-controller 
COPY --from=builder /go/src/github.com/openshift/cluster-policy-controller/cluster-policy-controller /usr/bin/

LABEL \
        io.k8s.display-name="OpenShift Cluster Policy Controller Command" \
        io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
        io.openshift.tags="openshift,cluster-policy-controller" \
        name="openshift/ose-cluster-policy-controller" \
        com.redhat.component="ose-cluster-policy-controller-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="kube-controller-manager" \
        release="202010141211.p0" \
        io.openshift.build.commit.id="bc78df73a234485eaf300884d02fef693d62b9be" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-policy-controller" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-policy-controller/commit/bc78df73a234485eaf300884d02fef693d62b9be" \
        version="v4.3.40"

