andreped commited on
Commit
6a04ae1
1 Parent(s): ff6abfe

Added user stuff to Dockerfile to handle permission issues

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,10 +1,14 @@
1
  FROM ohif/app:v3.7.0-beta.74
2
 
 
 
 
3
  # Set up a new user named "user" with user ID 1000
4
- #RUN useradd -m -u 1000 user
 
5
 
6
  # Switch to the "user" user
7
- #USER user
8
 
9
  # Set home to the user's home directory
10
  ENV HOME=/home/user \
 
1
  FROM ohif/app:v3.7.0-beta.74
2
 
3
+ # first set user as root to add new user (then later change to user)
4
+ USER root
5
+
6
  # Set up a new user named "user" with user ID 1000
7
+ # RUN useradd -m -u 1000 user
8
+ RUN adduser -D -u 1000 "user"
9
 
10
  # Switch to the "user" user
11
+ USER user
12
 
13
  # Set home to the user's home directory
14
  ENV HOME=/home/user \