Fred808 commited on
Commit
93166b5
·
verified ·
1 Parent(s): 728bbc9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -33,6 +33,12 @@ USER extractor
33
  # Expose volume for extracted files
34
  VOLUME ["/app/extracted", "/app/state"]
35
 
 
 
 
 
 
 
36
  # Set environment variables
37
  ENV PYTHONUNBUFFERED=1
38
  ENV DOWNLOAD_FOLDER=/app/downloads
 
33
  # Expose volume for extracted files
34
  VOLUME ["/app/extracted", "/app/state"]
35
 
36
+ RUN chmod -R 777 /app
37
+
38
+ # Ensure the app runs as the same user as the Space UI
39
+ RUN useradd -m -u 1000 user
40
+ USER user
41
+
42
  # Set environment variables
43
  ENV PYTHONUNBUFFERED=1
44
  ENV DOWNLOAD_FOLDER=/app/downloads