Skip to content

Commit

Permalink
refa: reference user by UID instead of name
Browse files Browse the repository at this point in the history
this enables runAsNonRoot for Kubernetes without specifying a user
  • Loading branch information
joshiste committed Dec 5, 2024
1 parent bc765d6 commit 8e88c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN apt-get -qq update \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /run/systemd/system /sidecar

USER $USERNAME
USER $USER_UID

WORKDIR /

Expand Down

0 comments on commit 8e88c52

Please sign in to comment.