Download Dockerfile from rev315/SahuAI: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/rev315/SahuAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rev315/SahuAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rev315/SahuAI/resolve/main/Dockerfile
311 Bytes
| FROM ollama/ollama:latest | |
| # Install Python deps | |
| RUN apt-get update && apt-get install -y python3-pip | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # Pre-pull GPT-2 so it’s ready | |
| RUN ollama pull gpt2 | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |