Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -4,6 +4,10 @@ RUN apt update && \
|
|
| 4 |
apt install -y ffmpeg git && \
|
| 5 |
apt clean
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 8 |
|
| 9 |
WORKDIR /app
|
|
|
|
| 4 |
apt install -y ffmpeg git && \
|
| 5 |
apt clean
|
| 6 |
|
| 7 |
+
# Set Hugging Face and model cache dirs to a writable location
|
| 8 |
+
ENV HF_HOME=/tmp/.cache/huggingface
|
| 9 |
+
ENV TRANSFORMERS_CACHE=/tmp/.cache/huggingface
|
| 10 |
+
ENV XDG_CACHE_HOME=/tmp/.cache
|
| 11 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 12 |
|
| 13 |
WORKDIR /app
|