From bc0f6eb65d2d93210254f6b8180ac7eb85cd81d0 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 4 Apr 2019 20:00:42 -0500 Subject: [PATCH] Reduce layers in Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e00bd66a..8edaf8a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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.