Skip to content

Commit

Permalink
make modification to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
varshaprasad96 committed Sep 10, 2021
1 parent 7a0b06b commit 99f53ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
ENV HOME=/opt/helm \
USER_NAME=helm \
USER_UID=1001 \
G_ID=0
RUN echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd
# Copy necessary files with the right permissions
COPY --chown=${USER_UID}:${G_ID} watches.yaml ${HOME}/watches.yaml
COPY --chown=${USER_UID}:${G_ID} helm-charts ${HOME}/helm-charts
COPY --chown=${USER_UID}:0 watches.yaml ${HOME}/watches.yaml
COPY --chown=${USER_UID}:0 helm-charts ${HOME}/helm-charts
# Copy manager binary
COPY --from=builder /workspace/manager .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4

ENV HOME=/opt/helm \
USER_NAME=helm \
USER_UID=1001 \
G_ID=0
USER_UID=1001

RUN echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd

# Copy necessary files with the right permissions
COPY --chown=${USER_UID}:${G_ID} watches.yaml ${HOME}/watches.yaml
COPY --chown=${USER_UID}:${G_ID} helm-charts ${HOME}/helm-charts
COPY --chown=${USER_UID}:0 watches.yaml ${HOME}/watches.yaml
COPY --chown=${USER_UID}:0 helm-charts ${HOME}/helm-charts

# Copy manager binary
COPY --from=builder /workspace/manager .
Expand Down

0 comments on commit 99f53ea

Please sign in to comment.