FROM openshift/golang-builder:1.11 AS builder
ENV SOURCE_GIT_COMMIT=533c9993c23611f26a3d26aecef037b93547e2f9 SOURCE_DATE_EPOCH=1571961738 BUILD_VERSION=v4.2.4 SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator SOURCE_GIT_TAG=533c999 BUILD_RELEASE=201911050122
WORKDIR /go/src/github.com/openshift/cluster-samples-operator
COPY . .
RUN make build

FROM openshift/ose-base:ubi7
ENV SOURCE_GIT_COMMIT=533c9993c23611f26a3d26aecef037b93547e2f9 SOURCE_DATE_EPOCH=1571961738 BUILD_VERSION=v4.2.4 SOURCE_GIT_URL=https://github.com/openshift/cluster-samples-operator SOURCE_GIT_TAG=533c999 BUILD_RELEASE=201911050122
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/533c9993c23611f26a3d26aecef037b93547e2f9" \
        version="v4.2.4" \
        io.openshift.build.commit.id="533c9993c23611f26a3d26aecef037b93547e2f9" \
        release="201911050122"

