devil2810 commited on
Commit
9883b3f
·
verified ·
1 Parent(s): 881173b

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
-
2
  # Use official slim Python image
3
  FROM python:3.8-slim
4
 
@@ -14,5 +13,9 @@ RUN pip install -r requirements.txt
14
  # Expose port used by HF Spaces Docker (default 7860)
15
  EXPOSE 7860
16
 
 
 
 
 
17
  # Start the Flask app
18
  CMD ["python", "app.py"]
 
 
1
  # Use official slim Python image
2
  FROM python:3.8-slim
3
 
 
13
  # Expose port used by HF Spaces Docker (default 7860)
14
  EXPOSE 7860
15
 
16
+ # Set environment variables for Hugging Face cache
17
+ ENV TRANSFORMERS_CACHE=/tmp/huggingface/transformers
18
+ ENV HF_HOME=/tmp/huggingface
19
+
20
  # Start the Flask app
21
  CMD ["python", "app.py"]