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

allow sudo

parent e92b396a
No related branches found
No related tags found
No related merge requests found
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
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