Spaces:
Sleeping
Sleeping
Download Dockerfile from AhmedBenElsayed/Graduation_Project: direct link, hf CLI and curl.
- Browser
- Download file 864 Bytes
-
https://huggingface.co/spaces/AhmedBenElsayed/Graduation_Project/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AhmedBenElsayed/Graduation_Project/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AhmedBenElsayed/Graduation_Project/resolve/main/Dockerfile
864 Bytes
| # ================================ | |
| # 1️⃣ استخدم Python كـ base image | |
| # ================================ | |
| FROM python:3.10-slim | |
| # ================================ | |
| # 2️⃣ ضبط مكان العمل | |
| # ================================ | |
| WORKDIR /app | |
| # ================================ | |
| # 3️⃣ نسخ الملفات | |
| # ================================ | |
| COPY requirements.txt requirements.txt | |
| COPY . . | |
| # ================================ | |
| # 4️⃣ تثبيت المكتبات | |
| # ================================ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # ================================ | |
| # 5️⃣ تحديد المنفذ (HF Spaces يشتغل على 7860 أو 8080) | |
| # ================================ | |
| EXPOSE 7860 | |
| # ================================ | |
| # 6️⃣ تشغيل السيرفر | |
| # ================================ | |
| CMD ["python", "app.py"] | |