FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=37f0177e80369b2cf5eceb3920cbb7c139a5ee16 SOURCE_GIT_TAG=37f0177e SOURCE_GIT_URL=https://github.com/openshift/cluster-image-registry-operator SOURCE_DATE_EPOCH=1580904944 BUILD_VERSION=v4.3.3 BUILD_RELEASE=202002171705
WORKDIR /go/src/github.com/openshift/cluster-image-registry-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.3.3.20200217.170535
ENV SOURCE_GIT_COMMIT=37f0177e80369b2cf5eceb3920cbb7c139a5ee16 SOURCE_GIT_TAG=37f0177e SOURCE_GIT_URL=https://github.com/openshift/cluster-image-registry-operator SOURCE_DATE_EPOCH=1580904944 BUILD_VERSION=v4.3.3 BUILD_RELEASE=202002171705
COPY images/bin/entrypoint.sh /usr/bin/
COPY manifests/image-references manifests/0* /manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-image-registry-operator/tmp/_output/bin/cluster-image-registry-operator /usr/bin/
RUN ln /usr/bin/cluster-image-registry-operator /usr/bin/cluster-image-registry-operator-watch && \
    chmod -R g+w /etc/pki/ca-trust/extracted/pem/

ENTRYPOINT ["/usr/bin/entrypoint.sh"]

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-image-registry-operator" \
        com.redhat.component="ose-cluster-image-registry-operator-container" \
        version="v4.3.3" \
        release="202002171705" \
        io.openshift.build.commit.id="37f0177e80369b2cf5eceb3920cbb7c139a5ee16" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-image-registry-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-image-registry-operator/commit/37f0177e80369b2cf5eceb3920cbb7c139a5ee16"

