Spaces:
Sleeping
Sleeping
Nrup Parikh
commited on
Commit
·
2b003cd
1
Parent(s):
f7e20e1
Dockerfile updated
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -14,5 +14,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
| 14 |
|
| 15 |
COPY --chown=user . /app
|
| 16 |
|
| 17 |
-
# Use
|
| 18 |
-
|
|
|
|
|
|
| 14 |
|
| 15 |
COPY --chown=user . /app
|
| 16 |
|
| 17 |
+
# Corrected CMD line: Use -b (or --bind) for host:port
|
| 18 |
+
# The common best practice is to also specify the number of worker processes (-w)
|
| 19 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
|