This commit is contained in:
Chuck Lantz
2020-01-16 16:45:58 -08:00
parent 2c1514b9fc
commit 0255de9745

View File

@@ -19,7 +19,7 @@ ARG USERNAME=node
# [Optional] Update UID/GID if needed # [Optional] Update UID/GID if needed
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \ RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
&& groupmod --gid $USER_GID $USERNAME \ groupmod --gid $USER_GID $USERNAME \
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \ && usermod --uid $USER_UID --gid $USER_GID $USERNAME \
&& chown -R $USER_UID:$USER_GID /home/$USERNAME; \ && chown -R $USER_UID:$USER_GID /home/$USERNAME; \
fi fi