Skip to content

Commit

Permalink
fix: fixed issue with the uvicorn worker command
Browse files Browse the repository at this point in the history
  • Loading branch information
creyD committed Oct 10, 2024
1 parent a43ec6a commit 4f50f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f50f6b

Please sign in to comment.