Update Dockerfile
Browse files- Dockerfile +5 -15
Dockerfile
CHANGED
|
@@ -1,18 +1,8 @@
|
|
| 1 |
-
|
| 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 |
-
#
|
| 13 |
-
|
| 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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|