FROM openshift/golang-builder:1.10 AS builder
ENV SOURCE_GIT_COMMIT=8e5cd0e8149e923c675d11dcbe8e520c337f5c50 SOURCE_DATE_EPOCH=1566315024 BUILD_VERSION=v4.1.13 SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator SOURCE_GIT_TAG=8e5cd0e BUILD_RELEASE=201908210601
WORKDIR /go/src/github.com/openshift/cluster-samples-operator
COPY . .
RUN make build

FROM openshift/ose-base:ubi7
ENV SOURCE_GIT_COMMIT=8e5cd0e8149e923c675d11dcbe8e520c337f5c50 SOURCE_DATE_EPOCH=1566315024 BUILD_VERSION=v4.1.13 SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator SOURCE_GIT_TAG=8e5cd0e BUILD_RELEASE=201908210601
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/8e5cd0e8149e923c675d11dcbe8e520c337f5c50" \
        version="v4.1.13" \
        io.openshift.build.commit.id="8e5cd0e8149e923c675d11dcbe8e520c337f5c50" \
        release="201908210601"

