Merge pull request #435 from codercom/docker-fixes

Reduce layers in Dockerfile
This commit is contained in:
Anmol Sethi 2019-04-05 10:18:50 -05:00 committed by GitHub
commit 4dd74b31b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,8 @@ RUN locale-gen en_US.UTF-8
# configured in /etc/default/locale so we need to set it manually. # configured in /etc/default/locale so we need to set it manually.
ENV LC_ALL=en_US.UTF-8 ENV LC_ALL=en_US.UTF-8
RUN adduser --gecos '' --disabled-password coder RUN adduser --gecos '' --disabled-password coder && \
RUN echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
USER coder USER coder
# We create first instead of just using WORKDIR as when WORKDIR creates, the user is root. # We create first instead of just using WORKDIR as when WORKDIR creates, the user is root.