Spaces:
Build error
Build error
Download Dockerfile from Ahmed35583/Render: direct link, hf CLI and curl.
- Browser
- Download file 755 Bytes
-
https://huggingface.co/spaces/Ahmed35583/Render/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ahmed35583/Render/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ahmed35583/Render/resolve/main/Dockerfile
755 Bytes
| FROM python:3.10-slim | |
| # تثبيت الأدوات الأساسية للصوتيات داخل النظام | |
| RUN apt-get update && apt-get install -y \ | |
| libsndfile1 \ | |
| ffmpeg \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # إعداد مجلد العمل الرئيسي داخل الحاوية | |
| WORKDIR /app | |
| # نسخ ملف المكتبات وتثبيتها أولاً للاستفادة من الـ Cache | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # نسخ كل ملفات المجلد الـ 84 الخاصة بمشروعك | |
| COPY . . | |
| # تشغيل السيرفر كـ Python Module لكي يقرأ مجلد backend بشكل صحيح | |
| CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "7860"] | |