Jan2000 commited on
Commit
9227b93
·
unverified ·
1 Parent(s): 99dae9a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -9,8 +9,10 @@ COPY . .
9
 
10
  EXPOSE 7860
11
 
12
- # START: MAX CONCURRENCY GUNICORN COMMAND
13
- # Increased the number of stable 'gthread' workers to 25.
14
- # This significantly boosts concurrent user capacity while maintaining stability.
15
- CMD ["gunicorn", "--workers", "8", "--worker-class", "gthread", "--bind", "0.0.0.0:7860", "--timeout", "720", "app:app"]
16
- # END: MAX CONCURRENCY COMMAND
 
 
 
9
 
10
  EXPOSE 7860
11
 
12
+ # --- START: FINAL OPTIMIZED COMMAND FOR ~10 CONCURRENT USERS ON FREE TIER ---
13
+ # This configuration uses only 1 worker to minimize RAM usage.
14
+ # It assigns 10 threads to that single worker, allowing it to handle
15
+ # approximately 10 concurrent requests while staying within the 512MB RAM limit.
16
+ # This is the most efficient setup for a high-concurrency goal on a low-memory plan.
17
+ CMD ["gunicorn", "--workers", "8", "--worker-class", "gthread", "--threads", "10", "--bind", "0.0.0.0:7860", "--timeout", "720", "app:app"]
18
+ # --- END: FINAL OPTIMIZED COMMAND ---