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 \ ...@@ -44,8 +44,8 @@ RUN apt-get install -y \
vim \ vim \
nano nano
RUN useradd -ms /bin/bash coder # add ubuntu user to sudo
RUN usermod -aG sudo coder RUN usermod -aG sudo ubuntu
# allow sudo without password # allow sudo without password
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
...@@ -54,9 +54,9 @@ 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 apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# switch to coder user # switch to ubuntu user
USER coder USER ubuntu
WORKDIR /home/coder WORKDIR /home/ubuntu
# add .local/bin to PATH to be able to directly call python modules installed by pipx # add .local/bin to PATH to be able to directly call python modules installed by pipx
ENV PATH="${PATH}:/home/coder/.local/bin" ENV PATH="${PATH}:/home/ubuntu/.local/bin"
\ No newline at end of file \ 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