Download Dockerfile from MrA7A/PeAI: direct link, hf CLI and curl.
- Browser
- Download file 773 Bytes
-
https://huggingface.co/spaces/MrA7A/PeAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MrA7A/PeAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MrA7A/PeAI/resolve/main/Dockerfile
773 Bytes
| FROM python:3.9-slim-bullseye | |
| # تثبيت أدوات البناء + المكتبات المطلوبة لـ llama-cpp | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential cmake libopenblas-dev libblas-dev liblapack-dev git python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # إصلاح تعارض importlib_metadata: ركّب نسخة مناسبة أولًا | |
| RUN pip install "importlib_metadata<5" | |
| # نسخ المتطلبات | |
| COPY requirements.txt . | |
| # تثبيت كل شيء بعد ضبط importlib_metadata | |
| RUN pip install --upgrade pip setuptools wheel \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # نسخ التطبيق | |
| COPY . . | |
| WORKDIR /app | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |