Download Dockerfile from Sameh891/sa: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/spaces/Sameh891/sa/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Sameh891/sa/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Sameh891/sa/resolve/main/Dockerfile
711 Bytes
| # استخدام نسخة خفيفة من بايثون | |
| FROM python:3.10-slim | |
| # تثبيت متطلبات النظام الضرورية | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # تثبيت المكتبات المطلوبة للتعامل مع صور الأشعة ونموذج LLaVA | |
| RUN pip install --no-cache-dir \ | |
| gradio \ | |
| transformers \ | |
| accelerate \ | |
| bitsandbytes \ | |
| sentencepiece \ | |
| protobuf \ | |
| pillow | |
| # نسخ كود التشغيل (سننشئه في الخطوة القادمة) | |
| COPY app.py . | |
| # فتح المنفذ الخاص بالـ API | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |