rabiyulfahim commited on
Commit
eb8a97e
·
verified ·
1 Parent(s): 35ff1c7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -17,5 +17,9 @@ COPY . .
17
  # Expose FastAPI port
18
  EXPOSE 8000
19
 
 
 
 
 
20
  # Run API with uvicorn
21
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
17
  # Expose FastAPI port
18
  EXPOSE 8000
19
 
20
+ # Before CMD, add this:
21
+ ENV TRANSFORMERS_CACHE=/app/cache
22
+ RUN mkdir -p /app/cache
23
+
24
  # Run API with uvicorn
25
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]