MdSourav76046 commited on
Commit
7add098
·
verified ·
1 Parent(s): 5d4f482

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -17,6 +17,13 @@ RUN pip install --no-cache-dir -r requirements.txt
17
  # Copy application files
18
  COPY app.py .
19
 
 
 
 
 
 
 
 
20
  # Expose port
21
  EXPOSE 8000
22
 
 
17
  # Copy application files
18
  COPY app.py .
19
 
20
+ # Set environment variables for Hugging Face cache
21
+ ENV TRANSFORMERS_CACHE=/app/cache
22
+ ENV HF_HOME=/app/cache
23
+
24
+ # Create cache directory
25
+ RUN mkdir -p /app/cache
26
+
27
  # Expose port
28
  EXPOSE 8000
29