Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -19,13 +19,13 @@ RUN apt-get update && \
|
|
19 |
&& rm -rf /var/lib/apt/lists/* \
|
20 |
&& git lfs install
|
21 |
|
22 |
-
# --- CRITICAL FIX: Create /.deepmost and set permissions ---
|
23 |
-
# Docker images usually run as root during RUN steps.
|
24 |
-
# Create the directory where deepmost wants to save its files.
|
25 |
RUN mkdir -p /.deepmost && \
|
26 |
-
chmod 777 /.deepmost
|
27 |
|
28 |
-
# Set
|
|
|
|
|
29 |
ENV MPLCONFIGDIR=/tmp/.matplotlib
|
30 |
|
31 |
|
|
|
19 |
&& rm -rf /var/lib/apt/lists/* \
|
20 |
&& git lfs install
|
21 |
|
22 |
+
# --- CRITICAL FIX 1: Create /.deepmost and set permissions ---
|
|
|
|
|
23 |
RUN mkdir -p /.deepmost && \
|
24 |
+
chmod 777 /.deepmost
|
25 |
|
26 |
+
# --- CRITICAL FIX 2: Set Hugging Face cache directory to /tmp ---
|
27 |
+
ENV HF_HOME="/tmp/.hf_cache"
|
28 |
+
# Also set MPLCONFIGDIR for Matplotlib cache (from previous fix)
|
29 |
ENV MPLCONFIGDIR=/tmp/.matplotlib
|
30 |
|
31 |
|