Fred808 commited on
Commit
5c3e108
·
verified ·
1 Parent(s): 5ff7bd7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -29,6 +29,12 @@ COPY script.js .
29
  # Create necessary directories
30
  RUN mkdir -p downloads
31
 
 
 
 
 
 
 
32
  # Expose port
33
  EXPOSE 7860
34
 
 
29
  # Create necessary directories
30
  RUN mkdir -p downloads
31
 
32
+ RUN chmod -R 777 /app
33
+
34
+ # Ensure the app runs as the same user as the Space UI
35
+ RUN useradd -m -u 1000 user
36
+ USER user
37
+
38
  # Expose port
39
  EXPOSE 7860
40