FROM openshift/golang-builder:1.10 AS builder
ENV SOURCE_GIT_COMMIT=e5689ff9e32fdb6704d2c86cdf5f9bd0500a8990 SOURCE_DATE_EPOCH=1561488383 BUILD_VERSION=v4.1.7 SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator SOURCE_GIT_TAG=e5689ff BUILD_RELEASE=201907171753
WORKDIR /go/src/github.com/openshift/cluster-samples-operator
COPY . .
RUN make build

FROM openshift/ose-base:ubi7
ENV SOURCE_GIT_COMMIT=e5689ff9e32fdb6704d2c86cdf5f9bd0500a8990 SOURCE_DATE_EPOCH=1561488383 BUILD_VERSION=v4.1.7 SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator SOURCE_GIT_TAG=e5689ff BUILD_RELEASE=201907171753
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 \
        com.redhat.component="ose-cluster-samples-operator-container" \
        name="openshift/ose-cluster-samples-operator" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-samples-operator" \
        io.openshift.release.operator="true" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-samples-operator/commit/e5689ff9e32fdb6704d2c86cdf5f9bd0500a8990" \
        version="v4.1.7" \
        io.openshift.build.commit.id="e5689ff9e32fdb6704d2c86cdf5f9bd0500a8990" \
        release="201907171753"

