Pamudu13 commited on
Commit
7c9d1a2
·
verified ·
1 Parent(s): efa1440

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -51,5 +51,5 @@ USER chrome
51
  # Make port 7860 available to the world outside this container
52
  EXPOSE 7860
53
 
54
- # Run the app with Hypercorn
55
- CMD ["hypercorn", "app:app", "--bind", "0.0.0.0:7860"]
 
51
  # Make port 7860 available to the world outside this container
52
  EXPOSE 7860
53
 
54
+ # Run the app with Hypercorn (with 4 workers and asyncio worker class)
55
+ CMD ["hypercorn", "app:app", "--bind", "0.0.0.0:7860", "--workers", "4", "--worker-class", "asyncio"]