Update Dockerfile

This commit is contained in:
uazo 2021-07-12 13:38:57 +02:00 committed by GitHub
parent f86e0eeb53
commit cba16c550f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,12 +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
#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}
USER ${user}
RUN mkdir -p /home/${user}
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
WORKDIR /home/${user}