From 7d9063ac694cd50561ec1f109dfa1099ea0e5947 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Mon, 12 Jul 2021 15:26:48 +0200 Subject: [PATCH] Update Dockerfile --- images/build-deps/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/images/build-deps/Dockerfile b/images/build-deps/Dockerfile index ccba7ab..1a25ec4 100644 --- a/images/build-deps/Dockerfile +++ b/images/build-deps/Dockerfile @@ -7,14 +7,14 @@ RUN apt-get update &&\ ENV user lg -#RUN useradd -m -d /home/${user} ${user} && \ -# chown -R ${user} /home/${user} && \ -# adduser ${user} sudo && \ -# echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers -#USER ${user} - -RUN mkdir -p /home/${user} && \ +RUN useradd -m -d /home/${user} ${user} && \ + chown -R ${user} /home/${user} && \ + adduser ${user} sudo && \ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers +USER ${user} + +#RUN mkdir -p /home/${user} && \ +# echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers WORKDIR /home/${user}