Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# Dockerfile
|
| 2 |
|
| 3 |
# Base Python Image
|
| 4 |
-
FROM python:3.
|
| 5 |
|
| 6 |
# Set environment variables
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE 1
|
|
@@ -35,4 +35,4 @@ RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt; fi
|
|
| 35 |
EXPOSE 7860
|
| 36 |
|
| 37 |
# Run FastAPI with Uvicorn
|
| 38 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
# Dockerfile
|
| 2 |
|
| 3 |
# Base Python Image
|
| 4 |
+
FROM python:3.12
|
| 5 |
|
| 6 |
# Set environment variables
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
|
| 35 |
EXPOSE 7860
|
| 36 |
|
| 37 |
# Run FastAPI with Uvicorn
|
| 38 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]
|