vboxuser commited on
Commit
1455995
·
1 Parent(s): bd1046f
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -16,8 +16,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
 
17
  # Copy the rest of the code and set the ownership to the new user and group
18
  COPY . .
19
- RUN chmod a+rwx /home/myapp
20
 
 
 
21
 
22
  # Switch to the new user
23
  USER myapp
 
16
 
17
  # Copy the rest of the code and set the ownership to the new user and group
18
  COPY . .
19
+ RUN chown -R myapp:myapp .
20
 
21
+ # Create the home directory for the myapp user
22
+ RUN mkdir /home/myapp && chown myapp:myapp /home/myapp && chmod a+rwx /home/myapp
23
 
24
  # Switch to the new user
25
  USER myapp