Skip to content

Commit

Permalink
Merge pull request #45 from open-cluster-management-io/dockerfile-add…
Browse files Browse the repository at this point in the history
…-user

Revert removal of user uid from dockerfile
  • Loading branch information
philipwu08 authored Jun 29, 2022
2 parents 8ed3fe4 + f9a865d commit f86f7d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ 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
Expand All @@ -13,3 +14,5 @@ COPY build/bin /usr/local/bin
RUN /usr/local/bin/user_setup

ENTRYPOINT ["/usr/local/bin/entrypoint"]

USER ${USER_UID}
3 changes: 3 additions & 0 deletions build/Dockerfile.prow
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ 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
Expand All @@ -19,3 +20,5 @@ COPY build/bin /usr/local/bin
RUN /usr/local/bin/user_setup

ENTRYPOINT ["/usr/local/bin/entrypoint"]

USER ${USER_UID}

0 comments on commit f86f7d9

Please sign in to comment.