From b1bbf81245beba185b1ebe333feab81e282fc982 Mon Sep 17 00:00:00 2001
From: Sebastian <sebastian.karius@informatik.uni-halle.de>
Date: Thu, 17 Oct 2024 15:19:42 +0200
Subject: [PATCH] change user to ubuntu

---
 docker/coder-med/Dockerfile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/docker/coder-med/Dockerfile b/docker/coder-med/Dockerfile
index 32e3b5d..8bf9d74 100644
--- a/docker/coder-med/Dockerfile
+++ b/docker/coder-med/Dockerfile
@@ -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
-- 
GitLab