diff --git a/build/Dockerfile.rhtap b/build/Dockerfile.rhtap new file mode 100644 index 0000000..739e03c --- /dev/null +++ b/build/Dockerfile.rhtap @@ -0,0 +1,24 @@ +FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_1.20 AS builder + +WORKDIR go/src/open-cluster-management.io/multicloud-operators-channel +COPY . . +RUN make -f Makefile build + +FROM registry.access.redhat.com/ubi8/ubi-minimal:latest + +RUN microdnf update && \ + microdnf clean all + +ENV OPERATOR=/usr/local/bin/multicluster-operators-channel \ + USER_UID=1001 \ + USER_NAME=multicluster-operators-channel + +# install operator binary +COPY --from=builder go/src/open-cluster-management.io/multicloud-operators-channel/build/_output/bin/multicluster-operators-channel ${OPERATOR} + +COPY build/bin /usr/local/bin +RUN /usr/local/bin/user_setup + +ENTRYPOINT ["/usr/local/bin/entrypoint"] + +USER ${USER_UID}