Download Dockerfile from AnesKAM/cos: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/AnesKAM/cos/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AnesKAM/cos/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AnesKAM/cos/resolve/main/Dockerfile
572 Bytes
| FROM python:3.9-slim | |
| # تثبيت الأدوات الأساسية لبناء بعض المكتبات مثل curl_cffi | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # نسخ وتثبيت المتطلبات | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # نسخ باقي الملفات | |
| COPY . . | |
| # تعيين المنفذ | |
| ENV PORT=7860 | |
| # تشغيل التطبيق باستخدام gunicorn للاستقرار | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |