diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -13,8 +13,7 @@ RUN apt-get update && apt-get install -y \ libasound2 \ libgl1-mesa-glx \ libpulse0 \ - dbus-x11 \ - sudo + dbus-x11 RUN /bin/bash @@ -22,21 +21,13 @@ ENV UNAME thorny ENV UID 1000 ENV GID 985 - -# # Set up the user +# Set up the user RUN export UNAME=$UNAME UID=$UID GID=1000 && \ mkdir -p "/home/${UNAME}" && \ echo "${UNAME}:x:${UID}:${GID}:${UNAME} User,,,:/home/${UNAME}:/bin/bash" >> /etc/passwd && \ echo "${UNAME}:x:${UID}:" >> /etc/group -RUN chown thorny:thorny /home/thorny -# echo "${UNAME} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${UNAME} && \ -# chmod 0440 /etc/sudoers.d/${UNAME} && \ -# chown ${UID}:${GID} -R /home/${UNAME} && \ -# gpasswd -a ${UNAME} audio - -USER $UNAME ENV HOME /home/thorny WORKDIR /home/thorny CMD /bin/bash |