bla commited on
Commit
631120e
·
verified ·
1 Parent(s): e55d26b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -26,5 +26,9 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
26
  PYTHONUNBUFFERED=1 \
27
  XDG_CACHE_HOME=/app/.cache
28
 
 
 
 
 
29
  # Start the FastAPI app
30
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
26
  PYTHONUNBUFFERED=1 \
27
  XDG_CACHE_HOME=/app/.cache
28
 
29
+ # Create and fix permissions for .cache folder
30
+ RUN mkdir -p /.cache && chmod -R 777 /.cache
31
+ RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
32
+
33
  # Start the FastAPI app
34
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]