Spaces:
Build error
Build error
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # تثبيت أدوات النظام المطلوبة | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| python3-dev \ | |
| ffmpeg \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ترقية pip وتثبيت wheel بشكل منفصل | |
| RUN pip install --upgrade pip | |
| RUN pip install wheel setuptools | |
| # تثبيت الباكدجات المطلوبة | |
| RUN pip install fastapi uvicorn whisper ffmpeg-python deep-translator torch transformers python-multipart scipy | |
| COPY . /app | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] |