Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -79,11 +79,14 @@ COPY requirements.txt .
|
|
79 |
RUN pip install --upgrade pip
|
80 |
RUN pip install --no-cache-dir --verbose -r requirements.txt
|
81 |
|
82 |
-
# Set a writable cache directory
|
83 |
-
ENV TRANSFORMERS_CACHE=/app/cache
|
84 |
ENV HF_HOME=/app/cache
|
85 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
86 |
|
|
|
|
|
|
|
|
|
87 |
# Set writable Matplotlib config directory
|
88 |
ENV MPLCONFIGDIR=/app/cache/matplotlib
|
89 |
RUN mkdir -p $MPLCONFIGDIR && chmod -R 777 $MPLCONFIGDIR
|
|
|
79 |
RUN pip install --upgrade pip
|
80 |
RUN pip install --no-cache-dir --verbose -r requirements.txt
|
81 |
|
82 |
+
# Set a writable cache directory for Hugging Face Transformers
|
|
|
83 |
ENV HF_HOME=/app/cache
|
84 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
85 |
|
86 |
+
# Set a writable cache directory for Numba
|
87 |
+
ENV NUMBA_CACHE_DIR=/app/cache/numba_cache
|
88 |
+
RUN mkdir -p /app/cache/numba_cache && chmod -R 777 /app/cache/numba_cache
|
89 |
+
|
90 |
# Set writable Matplotlib config directory
|
91 |
ENV MPLCONFIGDIR=/app/cache/matplotlib
|
92 |
RUN mkdir -p $MPLCONFIGDIR && chmod -R 777 $MPLCONFIGDIR
|