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
b1bbf812
Commit
b1bbf812
authored
5 months ago
by
Sebastian Karius
Browse files
Options
Downloads
Patches
Plain Diff
change user to ubuntu
parent
dd4be3e2
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
+6
-6
6 additions, 6 deletions
docker/coder-med/Dockerfile
with
6 additions
and
6 deletions
docker/coder-med/Dockerfile
+
6
−
6
View file @
b1bbf812
...
...
@@ -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
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