Sparkonix commited on
Commit
70a901d
·
1 Parent(s): 1d2d19c

added cache dir for HF in docker

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -19,6 +19,9 @@ ENV MODEL_PATH="Sparkonix/email-classifier-model"
19
  # Add this line to set cache location to a writable directory
20
  ENV HF_HOME="/app/.cache/huggingface"
21
 
 
 
 
22
  # Expose the port
23
  EXPOSE 7860
24
 
 
19
  # Add this line to set cache location to a writable directory
20
  ENV HF_HOME="/app/.cache/huggingface"
21
 
22
+ # Create the Hugging Face cache directory and set permissions
23
+ RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache/huggingface
24
+
25
  # Expose the port
26
  EXPOSE 7860
27