Spaces:
Sleeping
Sleeping
another fix
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -23,9 +23,9 @@ RUN pip install --no-cache-dir --upgrade -r ./app/requirements.txt
|
|
| 23 |
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
|
| 24 |
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /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"]
|
| 30 |
RUN chmod +x /home/appuser/.local/bin/gunicorn
|
| 31 |
CMD ["/home/appuser/.local/bin/gunicorn", "-w", "2", "-k", "uvicorn.workers.UvicornWorker", "app:app"]
|
|
|
|
| 23 |
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
|
| 24 |
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
|
| 25 |
USER appuser
|
| 26 |
+
RUN pip install --no-cache-dir 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"]
|
| 30 |
RUN chmod +x /home/appuser/.local/bin/gunicorn
|
| 31 |
CMD ["/home/appuser/.local/bin/gunicorn", "-w", "2", "-k", "uvicorn.workers.UvicornWorker", "app:app"]
|