Fred808 commited on
Commit
7cfb62a
·
verified ·
1 Parent(s): 5dda906

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -23,6 +23,13 @@ RUN mkdir -p downloads extracted_tmp video_frames_tmp zipped_frames
23
  # Expose port
24
  EXPOSE 7860
25
 
 
 
 
 
 
 
 
26
  # Set environment variables
27
  ENV PYTHONUNBUFFERED=1
28
  ENV HF_HOME=/app/.cache/huggingface
 
23
  # Expose port
24
  EXPOSE 7860
25
 
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
+
33
  # Set environment variables
34
  ENV PYTHONUNBUFFERED=1
35
  ENV HF_HOME=/app/.cache/huggingface