Skip to content

Commit

Permalink
update the workers
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhizzz committed Aug 8, 2024
1 parent b366ab5 commit 452e41f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ EXPOSE 8000
# Define environment variable
ENV NAME World

# Run main.py when the container launches
CMD [ "gunicorn","--bind", "0.0.0.0:8000", "app:app"]
# Run main.py when the container launches with 4 workers
CMD [ "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "4", "app:app"]

0 comments on commit 452e41f

Please sign in to comment.