Skip to content

Commit

Permalink
Make number of workers configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
epoz committed Jun 26, 2024
1 parent cd6eba7 commit e648da6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ RUN pip install -r requirements.txt

COPY src .

CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "app:app", "--log-level", "debug" ]
ENV WORKERS 4
CMD ["sh", "-c", "uvicorn --workers $WORKERS --host 0.0.0.0 --port 8000 --log-level debug app:app"]

0 comments on commit e648da6

Please sign in to comment.