Spaces:
Runtime error
Runtime error
Download Dockerfile from alaaashari/faace: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/spaces/alaaashari/faace/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/alaaashari/faace/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/alaaashari/faace/resolve/main/Dockerfile
617 Bytes
| # استخدم صورة أساسية مناسبة | |
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/ | |
| # تثبيت المتطلبات | |
| RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu \ | |
| && pip install onnxruntime huggingface_hub fastapi uvicorn | |
| # إنشاء مجلد العمل | |
| WORKDIR /app | |
| # تنزيل النموذج من Hugging Face | |
| RUN git clone https://huggingface.co/immich-app/antelopev2 /app/model | |
| # نسخ كود التطبيق | |
| COPY app.py /app/app.py | |
| # تشغيل التطبيق | |
| CMD ["python", "/app/app.py"] | |