Mettre à jour la commande CMD dans le Dockerfile pour utiliser uvicorn

This commit is contained in:
Pierre Berthe 2024-04-12 16:39:46 +02:00
parent dce4482e46
commit a08ae87415

View file

@ -22,4 +22,4 @@ RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /
USER appuser USER appuser
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "main:app"] CMD ["uvicorn", "main:app"]