Guiziii commited on
Commit
be1e2c3
1 Parent(s): 0a97bf3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -13,10 +13,10 @@ ENV FLASK_APP=app.main
13
  ENV FLASK_RUN_HOST=0.0.0.0
14
  ENV FLASK_RUN_PORT=7860
15
 
16
- # Set the Transformers cache directory within the container
17
- ENV TRANSFORMERS_CACHE=/code/.transformers_cache
18
 
19
- # Create the directory for Transformers cache
20
- RUN mkdir -p /code/.transformers_cache
21
 
22
  CMD ["flask", "run"]
 
13
  ENV FLASK_RUN_HOST=0.0.0.0
14
  ENV FLASK_RUN_PORT=7860
15
 
16
+ # Set the Hugging Face cache directory within the container
17
+ ENV HF_HOME=/code/.huggingface
18
 
19
+ # Create the directory for Hugging Face cache and ensure proper permissions
20
+ RUN mkdir -p /code/.huggingface && chmod -R 777 /code/.huggingface
21
 
22
  CMD ["flask", "run"]