mac9087 commited on
Commit
ac3c159
·
verified ·
1 Parent(s): a710aa3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -2,13 +2,15 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Fixes for permission errors
6
  ENV NUMBA_CACHE_DIR=/tmp
7
  ENV NUMBA_DISABLE_CACHE=1
8
  ENV HF_HOME=/tmp/huggingface
9
  ENV TRANSFORMERS_CACHE=/tmp/huggingface/transformers
10
  ENV TORCH_HOME=/tmp/torch
11
  ENV XDG_CACHE_HOME=/tmp
 
 
12
 
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
 
2
 
3
  WORKDIR /app
4
 
5
+ # Environment fixes for all cache issues
6
  ENV NUMBA_CACHE_DIR=/tmp
7
  ENV NUMBA_DISABLE_CACHE=1
8
  ENV HF_HOME=/tmp/huggingface
9
  ENV TRANSFORMERS_CACHE=/tmp/huggingface/transformers
10
  ENV TORCH_HOME=/tmp/torch
11
  ENV XDG_CACHE_HOME=/tmp
12
+ ENV MPLCONFIGDIR=/tmp/matplotlib
13
+ ENV TTS_HOME=/tmp/tts # <- This fixes the final Coqui TTS error
14
 
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt