Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -17,5 +17,9 @@ RUN pip install flask gunicorn pymupdf tiktoken
|
|
| 17 |
# Expose default port
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
-
# Run with Gunicorn
|
| 21 |
-
CMD ["gunicorn", "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# Expose default port
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
+
# Run with Gunicorn (Flask / WSGI)
|
| 21 |
+
CMD ["gunicorn", "app:app", \
|
| 22 |
+
"--bind", "0.0.0.0:${PORT}", \
|
| 23 |
+
"--workers", "1", "--threads", "4", "--timeout", "180", \
|
| 24 |
+
"--access-logfile", "-", "--error-logfile", "-", "--log-level", "debug", \
|
| 25 |
+
"--preload"]
|