AlyanAkram commited on
Commit
2201cf8
·
verified ·
1 Parent(s): 7c4688e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -8,8 +8,13 @@ WORKDIR /
8
  COPY . .
9
 
10
  # Define writable cache locations
 
11
  ENV HF_HOME=/tmp/hf_home
12
  ENV TRANSFORMERS_CACHE=/tmp/hf_home
 
 
 
 
13
  ENV NLTK_DATA=/tmp/nltk_data
14
 
15
  # Create required directories
 
8
  COPY . .
9
 
10
  # Define writable cache locations
11
+ # Setup all huggingface and nltk cache dirs to writable /tmp
12
  ENV HF_HOME=/tmp/hf_home
13
  ENV TRANSFORMERS_CACHE=/tmp/hf_home
14
+ ENV HUGGINGFACE_HUB_CACHE=/tmp/hf_home
15
+ ENV HF_HUB_ENABLE_HF_TRANSFER=0
16
+ ENV HF_HUB_DISABLE_SYMLINKS_WARNING=1
17
+ ENV HF_HUB_DISABLE_XET=1
18
  ENV NLTK_DATA=/tmp/nltk_data
19
 
20
  # Create required directories