Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -8,7 +8,7 @@ ENV PYTHONUNBUFFERED 1
|
|
| 8 |
# Set environment variables
|
| 9 |
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
|
| 10 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 11 |
-
ENV HF_HOME="/
|
| 12 |
|
| 13 |
# Set the working directory
|
| 14 |
WORKDIR /app
|
|
@@ -40,4 +40,4 @@ ENV FLASK_APP=app.py
|
|
| 40 |
ENV FLASK_ENV=production
|
| 41 |
|
| 42 |
# Command to run the Flask app using Gunicorn
|
| 43 |
-
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
|
|
|
|
| 8 |
# Set environment variables
|
| 9 |
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
|
| 10 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 11 |
+
ENV HF_HOME="/app/.cache/huggingface" # Update to a writable location
|
| 12 |
|
| 13 |
# Set the working directory
|
| 14 |
WORKDIR /app
|
|
|
|
| 40 |
ENV FLASK_ENV=production
|
| 41 |
|
| 42 |
# Command to run the Flask app using Gunicorn
|
| 43 |
+
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
|