Fred808 commited on
Commit
da05a7c
·
verified ·
1 Parent(s): cb3dd33

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -22,6 +22,13 @@ RUN mkdir -p downloads extracted_tmp
22
  # Expose port
23
  EXPOSE 7860
24
 
 
 
 
 
 
 
 
25
  # Set environment variables
26
  ENV PYTHONUNBUFFERED=1
27
  ENV HF_HOME=/app/.cache/huggingface
 
22
  # Expose port
23
  EXPOSE 7860
24
 
25
+ # Make the entire /app directory fully writeable for all users
26
+ RUN chmod -R 777 /app
27
+
28
+ # Ensure the app runs as the same user as the Space UI
29
+ RUN useradd -m -u 1000 user
30
+ USER user
31
+
32
  # Set environment variables
33
  ENV PYTHONUNBUFFERED=1
34
  ENV HF_HOME=/app/.cache/huggingface