derek-thomas HF staff commited on
Commit
04d2dbd
1 Parent(s): 8f70d13

Making and Owning /data

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -18,8 +18,8 @@ RUN curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alp
18
  # Create a non-root user with UID 1000
19
  RUN useradd -m -u 1000 -s /bin/bash user
20
 
21
- # Change ownership of the /data directory
22
- RUN chown -R user:user /data
23
 
24
  # Switch to the non-root user
25
  USER user
 
18
  # Create a non-root user with UID 1000
19
  RUN useradd -m -u 1000 -s /bin/bash user
20
 
21
+ # Create the /data directory and set its ownership
22
+ RUN mkdir /data && chown user:user /data
23
 
24
  # Switch to the non-root user
25
  USER user