-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: philipwu08 <[email protected]>
- Loading branch information
1 parent
c3c7a43
commit adc5f98
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |