Jerich commited on
Commit
3cc49a2
·
verified ·
1 Parent(s): 741c20d

Removed the TRANSFORMERS_CACHE environment variable

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -10,6 +10,13 @@ COPY requirements.txt .
10
  # Install the dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
 
 
 
 
 
 
13
  # Copy the rest of your app's code
14
  COPY . .
15
 
 
10
  # Install the dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Create the Hugging Face cache directory and set permissions
14
+ RUN mkdir -p /tmp/hf_cache && chmod -R 777 /tmp/hf_cache
15
+
16
+ # Set environment variables for Hugging Face cache
17
+ ENV HOME=/root
18
+ ENV HF_HOME=/tmp/hf_cache
19
+
20
  # Copy the rest of your app's code
21
  COPY . .
22