Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
containerize
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container Registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Studio R215
containerize
Commits
9e5167e7
Commit
9e5167e7
authored
5 months ago
by
Sebastian Karius
Browse files
Options
Downloads
Patches
Plain Diff
allow sudo
parent
e92b396a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/coder-med/Dockerfile
+9
-1
9 additions, 1 deletion
docker/coder-med/Dockerfile
with
9 additions
and
1 deletion
docker/coder-med/Dockerfile
+
9
−
1
View file @
9e5167e7
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment