Skip to content

Commit

Permalink
Merge pull request #435 from codercom/docker-fixes
Browse files Browse the repository at this point in the history
Reduce layers in Dockerfile
  • Loading branch information
nhooyr authored Apr 5, 2019
2 parents 6737d3d + bc0f6eb commit 4dd74b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN locale-gen en_US.UTF-8
# configured in /etc/default/locale so we need to set it manually.
ENV LC_ALL=en_US.UTF-8

RUN adduser --gecos '' --disabled-password coder
RUN echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
RUN adduser --gecos '' --disabled-password coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd

USER coder
# We create first instead of just using WORKDIR as when WORKDIR creates, the user is root.
Expand Down

0 comments on commit 4dd74b3

Please sign in to comment.