Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -11,5 +11,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
11 |
|
12 |
COPY . .
|
13 |
|
|
|
|
|
|
|
14 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
15 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
11 |
|
12 |
COPY . .
|
13 |
|
14 |
+
ENV HF_HOME=/tmp
|
15 |
+
ENV TRANSFORMERS_CACHE=/tmp
|
16 |
+
|
17 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
18 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|