Spaces:
Build error
Build error
File size: 606 Bytes
e5d3ac6 44a8389 d3f7e8e 44a8389 d3f7e8e 44a8389 14ae0d6 e5d3ac6 d3f7e8e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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"] |