Jan2000 commited on
Commit
22e35aa
·
unverified ·
0 Parent(s):

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ 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", "25", "--worker-class", "gthread", "--bind", "0.0.0.0:7860", "--timeout", "720", "app:app"]
16
+ # END: MAX CONCURRENCY COMMAND