Download Dockerfile from Reem1/API: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/spaces/Reem1/API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Reem1/API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Reem1/API/resolve/main/Dockerfile
364 Bytes
| FROM python:3.10 | |
| ENV HF_HOME=/data | |
| ENV TRANSFORMERS_CACHE=/data/cache | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # نضيف فولدرات للكاش + ندي صلاحيات كاملة | |
| RUN mkdir -p /data/cache && chmod -R 777 /data/cache | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |