FROM openshift/golang-builder:1.11 AS builder
ENV __doozer=update BUILD_RELEASE=202005252115 BUILD_VERSION=v4.2.34 OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=34 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.2.34-202005252115 
ENV __doozer=merge OS_GIT_COMMIT=37968e2 OS_GIT_VERSION=4.2.34-202005252115-37968e2 SOURCE_DATE_EPOCH=1585825136 SOURCE_GIT_COMMIT=37968e2ae5136b02fc5376bcc321c8b4ba84029e SOURCE_GIT_TAG=37968e2a SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator 
WORKDIR /go/src/github.com/openshift/cluster-samples-operator
COPY . .
RUN make build

FROM openshift/ose-base:ubi7
ENV __doozer=update BUILD_RELEASE=202005252115 BUILD_VERSION=v4.2.34 OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=34 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.2.34-202005252115 
ENV __doozer=merge OS_GIT_COMMIT=37968e2 OS_GIT_VERSION=4.2.34-202005252115-37968e2 SOURCE_DATE_EPOCH=1585825136 SOURCE_GIT_COMMIT=37968e2ae5136b02fc5376bcc321c8b4ba84029e SOURCE_GIT_TAG=37968e2a SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator 
COPY --from=builder /go/src/github.com/openshift/cluster-samples-operator/cluster-samples-operator /usr/bin/
COPY manifests/image-references manifests/0* /manifests/
COPY tmp/build/assets /opt/openshift/
RUN useradd cluster-samples-operator
USER cluster-samples-operator
ENTRYPOINT []
CMD ["/usr/bin/cluster-samples-operator"]

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-samples-operator" \
        com.redhat.component="ose-cluster-samples-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Samples" \
        version="v4.2.34" \
        release="202005252115" \
        io.openshift.build.commit.id="37968e2ae5136b02fc5376bcc321c8b4ba84029e" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-samples-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-samples-operator/commit/37968e2ae5136b02fc5376bcc321c8b4ba84029e"

