File size: 628 Bytes
8f7c473 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 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"]
|