Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -10,5 +10,7 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
COPY --chown=user . /app
|
13 |
-
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|
14 |
|
|
|
|
|
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
COPY --chown=user . /app
|
13 |
+
# CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|
14 |
|
15 |
+
# Run Gunicorn with timeout and workers
|
16 |
+
CMD ["gunicorn", "--timeout", "120", "-w", "2", "-b", "0.0.0.0:7860", "app:app"]
|