Shabdobhedi commited on
Commit
b87f8f4
·
verified ·
1 Parent(s): 919dc32

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -13,8 +13,11 @@ RUN python3 -m venv /opt/venv
13
  # Activate the virtual environment
14
  ENV PATH="/opt/venv/bin:$PATH"
15
 
 
 
 
16
  # Install requirements.txt 
17
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
18
 
19
- # Start the FastAPI app on port 7860, the default port expected by Spaces
20
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
13
  # Activate the virtual environment
14
  ENV PATH="/opt/venv/bin:$PATH"
15
 
16
+ # Set the TRANSFORMERS_CACHE environment variable
17
+ ENV TRANSFORMERS_CACHE=/tmp/transformers_cache
18
+
19
  # Install requirements.txt 
20
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
21
 
22
+ # Start the FastAPI app on port 7860
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]