rockerritesh commited on
Commit
0307958
·
verified ·
1 Parent(s): 0b81900

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -25,6 +25,12 @@ EXPOSE 7860
25
  # Set port environment variable for Hugging Face Spaces
26
  ENV PORT=7860
27
 
 
 
 
 
 
 
28
  # Run the server
29
  CMD ["uv", "run", "server.py"]
30
 
 
25
  # Set port environment variable for Hugging Face Spaces
26
  ENV PORT=7860
27
 
28
+ # Set UV cache directory to writable location for non-root user
29
+ ENV UV_CACHE_DIR=/app/.cache/uv
30
+
31
+ # Create cache directory with proper permissions
32
+ RUN mkdir -p /app/.cache/uv && chmod -R 777 /app/.cache
33
+
34
  # Run the server
35
  CMD ["uv", "run", "server.py"]
36