Ignore GROUP_ID when building the RHEL docker build image

This commit is contained in:
Nate McMaster 2018-11-01 17:37:03 -07:00
parent 27deb6f6f8
commit e295d0506e
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ ARG GROUP_ID
WORKDIR /code/build
RUN useradd -m ${USER} --uid ${USER_ID} -g root -G ${GROUP_ID}
RUN useradd -m ${USER} --uid ${USER_ID} -g root
RUN echo '${USER} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# With the User Change, we need to change permssions on these directories
@ -17,7 +17,7 @@ RUN chmod -R a+rwx /home
RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
# Set user to the one we just created
USER $USER_ID:$GROUP_ID
USER $USER_ID
# Skip package initilization
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1