fix: fixed issue with the uvicorn worker command

This commit is contained in:
2024-10-10 17:59:38 +02:00
parent a43ec6abd8
commit 4f50f6bb7e

View File

@@ -15,7 +15,7 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install 'uvicorn[standard]'
EXPOSE 9000
CMD ["uvicorn", "app.main:app", "-w", "6" , "--host", "0.0.0.0", "--port", "9000"]
CMD ["uvicorn", "app.main:app", "--workers", "6" , "--host", "0.0.0.0", "--port", "9000"]
# Install curl
RUN apt-get update && apt-get install -y curl && apt-get clean