eloukas commited on
Commit
689b8bf
·
verified ·
1 Parent(s): 62c9d32

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -13,7 +13,10 @@ COPY --chown=user . .
13
  EXPOSE 7860
14
 
15
  # Optimization: Baseline
16
- CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "4"]
 
 
 
17
 
18
  # Optimization: Shared memory with many threads
19
  # CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "4", "--timeout", "120"]
 
13
  EXPOSE 7860
14
 
15
  # Optimization: Baseline
16
+ # CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "4"]
17
+
18
+ # Baseline with 1 worker only
19
+ CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "1"]
20
 
21
  # Optimization: Shared memory with many threads
22
  # CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "4", "--timeout", "120"]