Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -20,12 +20,14 @@ RUN apt-get update && \
|
|
| 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
|
| 29 |
ENV MPLCONFIGDIR=/tmp/.matplotlib
|
| 30 |
|
| 31 |
|
|
|
|
| 20 |
&& git lfs install
|
| 21 |
|
| 22 |
# --- CRITICAL FIX 1: 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 # Give read/write/execute permissions to all for this specific folder
|
| 27 |
|
| 28 |
# --- CRITICAL FIX 2: Set Hugging Face cache directory to /tmp ---
|
| 29 |
ENV HF_HOME="/tmp/.hf_cache"
|
| 30 |
+
# Also set MPLCONFIGDIR for Matplotlib cache
|
| 31 |
ENV MPLCONFIGDIR=/tmp/.matplotlib
|
| 32 |
|
| 33 |
|