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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -13,5 +13,10 @@ ENV FLASK_APP=app.main
13
  ENV FLASK_RUN_HOST=0.0.0.0
14
  ENV FLASK_RUN_PORT=7860
15
 
16
- # Command to run the Flask application
 
 
 
 
 
17
  CMD ["flask", "run"]
 
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"]