Update Dockerfile

This commit is contained in:
uazo 2021-07-12 15:26:48 +02:00 committed by GitHub
parent 2d67eddf2a
commit 7d9063ac69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}