Skip to content
Snippets Groups Projects
Commit b1bbf812 authored by Sebastian Karius's avatar Sebastian Karius
Browse files

change user to ubuntu

parent dd4be3e2
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ RUN apt-get install -y \
vim \
nano
RUN useradd -ms /bin/bash coder
RUN usermod -aG sudo coder
# add ubuntu user to sudo
RUN usermod -aG sudo ubuntu
# allow sudo without password
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
......@@ -54,9 +54,9 @@ RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# switch to coder user
USER coder
WORKDIR /home/coder
# switch to ubuntu user
USER ubuntu
WORKDIR /home/ubuntu
# add .local/bin to PATH to be able to directly call python modules installed by pipx
ENV PATH="${PATH}:/home/coder/.local/bin"
\ No newline at end of file
ENV PATH="${PATH}:/home/ubuntu/.local/bin"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment