prince1604 commited on
Commit
a51ef54
·
1 Parent(s): f4e3dc7

Fix permissions in Dockerfile for HF compatibility

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -23,9 +23,9 @@ RUN playwright install --with-deps chromium
23
  COPY . /code
24
 
25
  # Set permissions for Hugging Face (UID 1000)
26
- RUN useradd -m -u 1000 user || echo "User already exists"
27
- RUN chown -R user:user /code
28
- USER user
29
 
30
  # Ensure the static directory exists and is writable
31
  RUN mkdir -p /code/static
 
23
  COPY . /code
24
 
25
  # Set permissions for Hugging Face (UID 1000)
26
+ # Hugging Face Spaces environment already has a user with UID 1000
27
+ RUN chown -R 1000:1000 /code
28
+ USER 1000
29
 
30
  # Ensure the static directory exists and is writable
31
  RUN mkdir -p /code/static