Spaces:
Sleeping
Sleeping
Calling gunicorn via python
#1
by Surrendra - opened
- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -25,4 +25,5 @@ RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /
|
|
| 25 |
USER appuser
|
| 26 |
RUN pip install gunicorn
|
| 27 |
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
|
| 28 |
-
CMD ["/home/appuser/.local/bin/gunicorn", "--bind", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "setup:app"]
|
|
|
|
|
|
| 25 |
USER appuser
|
| 26 |
RUN pip install gunicorn
|
| 27 |
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
|
| 28 |
+
#CMD ["/home/appuser/.local/bin/gunicorn", "--bind", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "setup:app"]
|
| 29 |
+
CMD ["python", "-m", "gunicorn", "-w", "2", "-k", "uvicorn.workers.UvicornWorker", "setup:app"]
|