afdbd507393653a190914d7b07a604733ec47bf4 — David Knight 1 year, 2 months ago 714559d master
stop being an old man and use sudo group instead of wheel
1 files changed, 1 insertions(+), 2 deletions(-)

M Dockerfile
M Dockerfile => Dockerfile +1 -2
@@ 17,8 17,7 @@ RUN apt-get install -y sudo vim
RUN EXISTING_GROUP=$(cat /etc/group | grep ":$gid:" | awk '{split($0,s,":"); print s[1]}'); [[ $EXISTING_GROUP ]] && groupmod --new-name user $EXISTING_GROUP || groupadd --gid $gid user

# finally setup regular user
RUN groupadd wheel
RUN useradd -m -s /bin/bash --uid $uid --gid $gid -G wheel user
RUN useradd -m -s /bin/bash --uid $uid --gid $gid -G sudo user
RUN echo 'user:docker' | chpasswd

# install anaconda