Nikita commited on
Commit
fc466e0
·
1 Parent(s): 14d91dc

env variables to controll locations

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -4,6 +4,14 @@ FROM continuumio/miniconda3
4
  # Set working directory
5
  WORKDIR /app
6
 
 
 
 
 
 
 
 
 
7
  # Copy environment.yaml for conda
8
  COPY environment.yaml /tmp/environment.yaml
9
 
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # --- ADD THESE LINES HERE ---
8
+ # Set environment variables to control cache locations
9
+ # This prevents permission errors by directing cache writes to a local .cache
10
+ # directory within our /app folder, which is always writable.
11
+ ENV HF_HOME=/app/.cache/huggingface
12
+ ENV MPLCONFIGDIR=/app/.cache/matplotlib
13
+ # ---------------------------
14
+
15
  # Copy environment.yaml for conda
16
  COPY environment.yaml /tmp/environment.yaml
17