Create default user
This commit is contained in:
parent
0fe0696102
commit
6d91d53b08
1 changed files with 8 additions and 1 deletions
|
|
@ -7,4 +7,11 @@ RUN apk add --no-cache \
|
|||
nodejs \
|
||||
lftp
|
||||
|
||||
USER 1000
|
||||
ARG USERNAME=runner
|
||||
ARG USER_UID=1000
|
||||
ARG USER_GID=$USER_UID
|
||||
|
||||
RUN addgroup --gid $USER_GID $USERNAME \
|
||||
&& adduser -u $USER_UID -G $USERNAME -D $USERNAME
|
||||
|
||||
USER $USERNAME
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue