This commit is contained in:
2021-11-29 15:51:56 +01:00
parent 3c70fe7a1e
commit e509db16a6
5 changed files with 30 additions and 16 deletions
+3 -3
View File
@@ -50,10 +50,10 @@ ARG USER_UNAME
ARG USER_GID
ARG USER_GNAME
# RUN addgroup -g 1000 gdp && \
RUN if [ $(getent group ${USER_GNAME}) ]; then echo "group ${USER_GNAME} already exists"; else addgroup -g ${USER_GID} ${USER_GNAME}; fi
# RUN addgroup -g 1000 ${USER_GNAME}
# adduser -h /home/gdp -D -u 1000 gdp && \
RUN adduser -u ${USER_UID} -G users -s /bin/sh -D ${USER_UNAME}
RUN adduser -u ${USER_UID} -G ${USER_GNAME} -s /bin/sh -D ${USER_UNAME}
# chown -R gdp:gdp /home/gdp
USER ${USER_UNAME}