Opera8 commited on
Commit
6537e6a
·
verified ·
1 Parent(s): 9201808

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -15
Dockerfile CHANGED
@@ -1,18 +1,8 @@
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: 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 ---
 
1
+ # فرمت: ghcr.io/USERNAME/REPO_NAME:latest
2
+ FROM ghcr.io/opera8/chatalpha-main:latest
 
 
 
 
 
 
3
 
4
+ # پورت استاندارد
5
  EXPOSE 7860
6
 
7
+ # دستور اجرا (محض اطمینان)
8
+ CMD ["gunicorn", "--workers", "8", "--worker-class", "gthread", "--threads", "10", "--bind", "0.0.0.0:7860", "--timeout", "720", "app:app"]