DinoPLayZ commited on
Commit
91eab63
·
verified ·
1 Parent(s): cbd761f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -6,13 +6,10 @@ WORKDIR /app
6
 
7
  # In HuggingFace Spaces it's crucial to set up the correct user privileges
8
  # Spaces require running as a non-root user with UID 1000
9
- RUN useradd -m -u 1000 user
10
- USER user
 
11
 
12
- # Ensure the /app path is owned by our new user
13
- # (This step must run as root before we switch, so we move it up)
14
- USER root
15
- RUN chown -R user:user /app
16
  USER user
17
 
18
  # Set environmental variables
 
6
 
7
  # In HuggingFace Spaces it's crucial to set up the correct user privileges
8
  # Spaces require running as a non-root user with UID 1000
9
+ RUN useradd -m -u 1000 user && \
10
+ mkdir -p /app && \
11
+ chown -R user:user /app
12
 
 
 
 
 
13
  USER user
14
 
15
  # Set environmental variables