Skip to content

Commit

Permalink
Add dockerfile for rhtap (#81)
Browse files Browse the repository at this point in the history
Signed-off-by: philipwu08 <[email protected]>
  • Loading branch information
philipwu08 authored Oct 10, 2023
1 parent c3c7a43 commit adc5f98
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build/Dockerfile.rhtap
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit adc5f98

Please sign in to comment.