Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
|
@@ -16,10 +16,9 @@ RUN pip install --no-cache-dir -r Requirements.txt
|
|
| 16 |
# Set the environment variable for Hugging Face cache location
|
| 17 |
ENV HF_HOME=/app/.cache
|
| 18 |
|
| 19 |
-
# Define environment variable for Flask app port (optional but not needed in HF Spaces)
|
| 20 |
#ENV PORT=7680
|
| 21 |
|
| 22 |
USER user
|
| 23 |
|
| 24 |
-
# Run the application using
|
| 25 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 16 |
# Set the environment variable for Hugging Face cache location
|
| 17 |
ENV HF_HOME=/app/.cache
|
| 18 |
|
|
|
|
| 19 |
#ENV PORT=7680
|
| 20 |
|
| 21 |
USER user
|
| 22 |
|
| 23 |
+
# Run the application using Unicorn
|
| 24 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|