Download Dockerfile from ex510/post: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/spaces/ex510/post/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ex510/post/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ex510/post/resolve/main/Dockerfile
628 Bytes
| 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"] | |