Fred808 commited on
Commit
d7bde30
·
verified ·
1 Parent(s): 2184ccb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -16,4 +16,12 @@ RUN pip install --no-cache-dir -r requirements.txt
16
  # Copy app code
17
  COPY . .
18
 
19
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "4000"]
 
 
 
 
 
 
 
 
 
16
  # Copy app code
17
  COPY . .
18
 
19
+ # Make the entire /app directory fully writeable for all users
20
+ RUN chmod -R 777 /app
21
+
22
+ # Ensure the app runs as the same user as the Space UI
23
+ RUN useradd -m -u 1000 user
24
+ USER user
25
+
26
+ # Launch cursor_tracker.py on container start
27
+ CMD ["python3", "cursor_tracker.py"]