Eva-API / Dockerfile
othmanezaid77's picture
Update Dockerfile
5c29424 verified
raw
history blame contribute delete
731 Bytes
# استعملنا نسخة فيها الأدوات واجدة
FROM python:3.10
# تنصيب المتطلبات الأساسية للنظام
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
libopenblas-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
# تثبيت المكتبات (درناهم هنا باش نضمنو السرعة)
RUN pip install --no-cache-dir fastapi uvicorn requests
# تثبيت llama-cpp بطريقة تضمن الـ Build
RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
COPY . .
# البورت اللي كيبغيه Hugging Face
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]