FROM openshift/golang-builder:1.11 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=26 OS_GIT_VERSION=4.2.26-202003230335-12e7540 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=12e7540dea0bc001948af9e7a0028f9da398303e SOURCE_GIT_TAG=12e7540 SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator SOURCE_DATE_EPOCH=1575583352 OS_GIT_COMMIT=12e7540 BUILD_VERSION=v4.2.26 BUILD_RELEASE=202003230335
WORKDIR /go/src/github.com/openshift/cluster-samples-operator
COPY . .
RUN make build

FROM openshift/ose-base:ubi7
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=26 OS_GIT_VERSION=4.2.26-202003230335-12e7540 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=12e7540dea0bc001948af9e7a0028f9da398303e SOURCE_GIT_TAG=12e7540 SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator SOURCE_DATE_EPOCH=1575583352 OS_GIT_COMMIT=12e7540 BUILD_VERSION=v4.2.26 BUILD_RELEASE=202003230335
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" \
        version="v4.2.26" \
        release="202003230335" \
        io.openshift.build.commit.id="12e7540dea0bc001948af9e7a0028f9da398303e" \
        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/12e7540dea0bc001948af9e7a0028f9da398303e"

