Jofthomas commited on
Commit
190f6f0
·
1 Parent(s): 9d69895

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -12,13 +12,14 @@ COPY . .
12
  # Install Python dependencies
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
- # Set permissions for unidic
16
- RUN mkdir -p /usr/local/lib/python3.10/site-packages/unidic \
17
- && chmod -R 777 /usr/local/lib/python3.10/site-packages/unidic
18
 
19
  # Resolve numba caching issue by setting the NUMBA_CACHE_DIR environment variable
20
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
21
- RUN mkdir -p /tmp/numba_cache \
22
- && chmod -R 777 /tmp/numba_cache
 
 
23
 
24
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
12
  # Install Python dependencies
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
+ # Set permissions for directories used by TTS
16
+ RUN mkdir -p /app/.local && chmod -R 777 /app/.local
 
17
 
18
  # Resolve numba caching issue by setting the NUMBA_CACHE_DIR environment variable
19
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
20
+ RUN mkdir -p /tmp/numba_cache && chmod -R 777 /tmp/numba_cache
21
+
22
+ # Set environment variable for the model download path
23
+ ENV XDG_CACHE_HOME=/app/.local
24
 
25
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]