Download Dockerfile from Reem1/API: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/spaces/Reem1/API/resolve/6d4cef259038059131e3039362ea080ea62a66ea/Dockerfile
- Command line
-
hf download hf://spaces/Reem1/API@6d4cef259038059131e3039362ea080ea62a66ea/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Reem1/API/resolve/6d4cef259038059131e3039362ea080ea62a66ea/Dockerfile
292 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"] | |