WebashalarForML commited on
Commit
92f0c53
1 Parent(s): 8fd8541

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -10,6 +10,13 @@ ENV PYTHONUNBUFFERED 1
10
  #ENV PATH="/home/user/.local/bin:$PATH"
11
  #ENV HF_HOME="/app/.cache/huggingface"
12
 
 
 
 
 
 
 
 
13
  # Create cache directories
14
  RUN mkdir -p /app/.cache/huggingface /app/.cache/matplotlib
15
 
 
10
  #ENV PATH="/home/user/.local/bin:$PATH"
11
  #ENV HF_HOME="/app/.cache/huggingface"
12
 
13
+ # Set environment variables for Hugging Face cache to /tmp (which is writable)
14
+ ENV TRANSFORMERS_CACHE=/tmp/huggingface
15
+ ENV HF_HOME=/tmp/huggingface
16
+
17
+ # Ensure permissions are correct (optional, but just in case)
18
+ RUN mkdir -p /tmp/huggingface && chmod -R 777 /tmp/huggingface
19
+
20
  # Create cache directories
21
  RUN mkdir -p /app/.cache/huggingface /app/.cache/matplotlib
22