We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6737d3d + bc0f6eb commit 4dd74b3Copy full SHA for 4dd74b3
Dockerfile
@@ -31,8 +31,8 @@ RUN locale-gen en_US.UTF-8
31
# configured in /etc/default/locale so we need to set it manually.
32
ENV LC_ALL=en_US.UTF-8
33
34
-RUN adduser --gecos '' --disabled-password coder
35
-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
36
37
USER coder
38
# We create first instead of just using WORKDIR as when WORKDIR creates, the user is root.
0 commit comments