feylur commited on
Commit
f1f455b
·
verified ·
1 Parent(s): f7317d1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -38,5 +38,9 @@ EXPOSE 7860
38
  ENV GRADIO_SERVER_NAME=0.0.0.0
39
  ENV GRADIO_SERVER_PORT=7860
40
 
 
 
 
 
41
  # Run app
42
  CMD ["python", "app.py"]
 
38
  ENV GRADIO_SERVER_NAME=0.0.0.0
39
  ENV GRADIO_SERVER_PORT=7860
40
 
41
+ # Set cache directory to writable location
42
+ ENV HF_HOME=/tmp/huggingface
43
+ ENV TRANSFORMERS_CACHE=/tmp/huggingface
44
+ ENV HF_DATASETS_CACHE=/tmp/huggingface
45
  # Run app
46
  CMD ["python", "app.py"]