Skip to content

Commit 26a5421

Browse files
committed
refa: reference user by UID instead of name
this enables runAsNonRoot for Kubernetes without specifying a user
1 parent 5a043b9 commit 26a5421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ARG USER_UID=10000
3131

3232
RUN adduser -u $USER_UID -D $USERNAME
3333

34-
USER $USERNAME
34+
USER $USER_UID
3535

3636
WORKDIR /
3737

0 commit comments

Comments
 (0)