Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -17,5 +17,11 @@ WORKDIR /app/backend
|
|
| 17 |
# Install Python dependencies
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
# Default command to run your app
|
| 21 |
CMD ["python", "main.py"]
|
|
|
|
| 17 |
# Install Python dependencies
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
+
# Set Hugging Face cache dirs to under /home/user
|
| 21 |
+
ENV HF_HOME=/home/user/.cache/huggingface
|
| 22 |
+
ENV TRANSFORMERS_CACHE=/home/user/.cache/huggingface/transformers
|
| 23 |
+
ENV HAYSTACK_TELEMETRY_ENABLED=False
|
| 24 |
+
ENV HAYSTACK_PROGRESS_BARS=False
|
| 25 |
+
|
| 26 |
# Default command to run your app
|
| 27 |
CMD ["python", "main.py"]
|