Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -14
Dockerfile
CHANGED
|
@@ -1,18 +1,11 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
build-essential \
|
| 8 |
-
libopenblas-dev \
|
| 9 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
-
# ت
|
| 12 |
-
RUN pip install --no-cache-dir llama-cpp-python fastapi uvicorn
|
| 13 |
-
|
| 14 |
-
# كوپي الكود ديال app.py (الموديل ديجا عندك فـ الملفات فـ Space)
|
| 15 |
-
COPY app.py .
|
| 16 |
-
|
| 17 |
-
# تشغيل السيرفر
|
| 18 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
# القالب الجاهز اللي فيه كاع المكتبات مبنية
|
| 2 |
+
FROM ghcr.io/abetlen/llama-cpp-python:latest
|
| 3 |
|
| 4 |
+
# تثبيت المكتبات ديال التواصل
|
| 5 |
+
RUN pip install --no-cache-dir fastapi uvicorn huggingface_hub requests
|
| 6 |
|
| 7 |
+
WORKDIR /code
|
| 8 |
+
COPY . .
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
+
# تشغيل إيفا
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|