diff --git a/docker/coder-med/Dockerfile b/docker/coder-med/Dockerfile
index 77b84c2f0a2501af503b422ce41da5e0911c5b1b..32e3b5ddc4384167a58af2b227446c391516f569 100644
--- a/docker/coder-med/Dockerfile
+++ b/docker/coder-med/Dockerfile
@@ -1,6 +1,8 @@
 FROM nvidia/cuda:12.6.2-devel-ubuntu24.04
 LABEL authors="sebastian"
 
+USER root
+
 ENV DEBIAN_FRONTEND=noninteractive
 RUN apt-get update && apt-get upgrade -y
 
@@ -45,10 +47,16 @@ RUN apt-get install -y \
 RUN useradd -ms /bin/bash coder
 RUN usermod -aG sudo coder
 
+# allow sudo without password
+RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
+
 # clean up
 RUN apt-get clean
 RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
 # switch to coder user
 USER coder
-WORKDIR /home/coder
\ No newline at end of file
+WORKDIR /home/coder
+
+# 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