Skip to content

Commit

Permalink
Multiple workers
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee committed Oct 18, 2024
1 parent 532c86b commit 3c52d3e
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 @@ -10,4 +10,4 @@ COPY ./requirements.txt /code/requirements.txt
RUN apk add musl-dev mariadb-connector-c-dev gcc
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app
CMD ["fastapi", "run", "app/main.py", "--port", "80"]
CMD ["fastapi", "run", "app/main.py", "--port", "80" --workers", "4"]

0 comments on commit 3c52d3e

Please sign in to comment.