devcool20 commited on
Commit
7a1d86c
·
verified ·
1 Parent(s): a44e6f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 # Give read/write/execute permissions to all for this specific folder
27
 
28
- # Set Matplotlib cache directory
 
 
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