From 452e41febd905f7542b5b0d6ae38c3a810bd93e5 Mon Sep 17 00:00:00 2001 From: huang qiwei Date: Thu, 8 Aug 2024 04:56:40 +0000 Subject: [PATCH] update the workers --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d45e7b..9bc73b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +# Run main.py when the container launches with 4 workers +CMD [ "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "4", "app:app"] \ No newline at end of file