Download Dockerfile from Binrushd-Medical-Center/Mobile-App-API: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/spaces/Binrushd-Medical-Center/Mobile-App-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Binrushd-Medical-Center/Mobile-App-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Binrushd-Medical-Center/Mobile-App-API/resolve/main/Dockerfile
619 Bytes
| # Dockerfile (خفيف لِـ HF Spaces) | |
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| # نزّل المتطلبات فقط | |
| COPY requirements.txt . | |
| COPY departments.json departments_info.json branches_summary.json branches_details.json Blog_summary.json Blog_posts_details.json offers.json home.json about_us.json /app/ | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # نزّل التطبيق بعد التثبيت عشان cache layer يفضل صغير | |
| COPY main.py /app/main.py | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |