Spaces:
Building
Building
prasanth.thangavel
commited on
Commit
·
3d37592
1
Parent(s):
b53345f
Update to resolve deployment issue
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -21,6 +21,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
21 |
COPY --chown=user . .
|
22 |
|
23 |
# Run gunicorn server on port 7860
|
24 |
-
# CMD ["
|
25 |
-
|
26 |
-
CMD ["
|
|
|
21 |
COPY --chown=user . .
|
22 |
|
23 |
# Run gunicorn server on port 7860
|
24 |
+
# CMD ["uvicorn", "-b", "0.0.0.0:7860", "app:app"] # Format: gunicorn -b host:port module_name:app_instance
|
25 |
+
CMD gunicorn --bind 0.0.0.0:7860 app:app
|
26 |
+
# CMD ["uvicorn", "--log-level", "debug", "--bind", "0.0.0.0:7860", "app:app"] # Use 0.0.0.0 to bind to all interfaces
|