Spaces:
Sleeping
Sleeping
Download Dockerfile from UNIQ-Project-AI/uniq_ui: direct link, hf CLI and curl.
- Browser
- Download file 751 Bytes
-
https://huggingface.co/spaces/UNIQ-Project-AI/uniq_ui/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/UNIQ-Project-AI/uniq_ui/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/UNIQ-Project-AI/uniq_ui/resolve/main/Dockerfile
751 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # تثبيت الأدوات الأساسية فقط | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 1. نسخ ملف المتطلبات | |
| COPY requirements.txt . | |
| # 2. تثبيت المكتبات | |
| RUN pip3 install --no-cache-dir -r requirements.txt | |
| # 3. نسخ كل الملفات (بما فيها app.py) | |
| COPY . . | |
| # 4. بورت Hugging Face الرسمي هو 7860 (مهم جداً) | |
| EXPOSE 7860 | |
| # 5. تشغيل السيرفر (تأكدي أن اسم ملفك app.py) | |
| # ملاحظة: شيلنا كلمة src/ لأن الملف موجود بره مباشرة | |
| ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |