moriire commited on
Commit
2d84286
1 Parent(s): 0698785

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -24,7 +24,8 @@ RUN python3 -m pip install --upgrade pip
24
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
25
 
26
  RUN useradd -ms /bin/bash user
27
-
 
28
  # Set environment variable for the host
29
  ENV HOST=0.0.0.0
30
  ENV PORT=7860
@@ -34,7 +35,7 @@ ENV TF_ENABLE_ONEDNN_OPTS=0
34
 
35
 
36
  # Set up a new user named "user" with user ID 1000
37
- RUN useradd -m -u 1000 user
38
  # Switch to the "user" user
39
  USER user
40
  # Set home to the user's home directory
 
24
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
25
 
26
  RUN useradd -ms /bin/bash user
27
+ RUN addgroup -g 1001 -S 1000
28
+ RUN adduser -u 1001 -S 1000 -G 1000
29
  # Set environment variable for the host
30
  ENV HOST=0.0.0.0
31
  ENV PORT=7860
 
35
 
36
 
37
  # Set up a new user named "user" with user ID 1000
38
+ RUN useradd -u 1000 user
39
  # Switch to the "user" user
40
  USER user
41
  # Set home to the user's home directory