Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
-
FROM python:3.
|
3 |
|
4 |
# Set environment variables for Python
|
5 |
ENV PYTHONDONTWRITEBYTECODE 1
|
@@ -72,4 +72,4 @@ ENV FLASK_ENV=production
|
|
72 |
|
73 |
# Command to run the Flask app using Gunicorn with 1 worker
|
74 |
#CMD ["gunicorn", "--workers=1", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
|
75 |
-
CMD ["gunicorn", "--workers=
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.11-slim
|
3 |
|
4 |
# Set environment variables for Python
|
5 |
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
72 |
|
73 |
# Command to run the Flask app using Gunicorn with 1 worker
|
74 |
#CMD ["gunicorn", "--workers=1", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
|
75 |
+
CMD ["gunicorn", "--workers=3", "--threads=2", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
|