mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-12 01:16:58 +00:00
only create group if not exists
This commit is contained in:
parent
cb41f952d6
commit
6db4ab669f
@ -12,8 +12,8 @@ RUN apt-get update \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN addgroup --gid $GROUP_ID $GROUP_NAME \
|
||||
&& adduser --uid $USER_ID --gid $GROUP_ID $USER_NAME
|
||||
RUN if ! getent group "$GROUP_ID"; then addgroup --gid $GROUP_ID $GROUP_NAME; fi
|
||||
RUN adduser --uid $USER_ID --gid $GROUP_ID $USER_NAME
|
||||
|
||||
RUN git config --global --add safe.directory /app
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user