FROM python:3.11-slim # تثبيت FFmpeg والأدوات RUN apt-get update && apt-get install -y \ ffmpeg \ wget \ && rm -rf /var/lib/apt/lists/* # تثبيت المكتبات RUN pip install --no-cache-dir \ fastapi \ uvicorn \ pillow \ python-multipart WORKDIR /app COPY . . # تحميل الخط العربي وقت البناء RUN wget -q -O /tmp/arabic.ttf \ 'https://github.com/googlefonts/noto-fonts/raw/main/hinted/ttf/NotoNaskhArabic/NotoNaskhArabic-Bold.ttf' \ && echo "✅ الخط جاهز" EXPOSE 7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]