pathii commited on
Commit
bdf605a
Β·
verified Β·
1 Parent(s): bdc7c7d

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -7,7 +7,10 @@ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
10
- # set huggingface cache directory to something writeable
 
 
 
11
  ENV HF_HOME=/app/.cache/huggingface
12
 
13
  CMD ["python", "train.py"]
 
7
 
8
  COPY . .
9
 
10
+ # Create writable cache directory
11
+ RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache
12
+
13
+ # Set huggingface cache directory
14
  ENV HF_HOME=/app/.cache/huggingface
15
 
16
  CMD ["python", "train.py"]