Download Dockerfile1 from binary1ne/Ollama: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/binary1ne/Ollama/resolve/main/Dockerfile1
- Command line
-
hf download hf://spaces/binary1ne/Ollama/Dockerfile1
-
curl -L -o Dockerfile1 https://huggingface.co/spaces/binary1ne/Ollama/resolve/main/Dockerfile1
318 Bytes
| FROM ollama/ollama:latest | |
| # Expose your desired port | |
| EXPOSE 7860 | |
| # Make Ollama listen on 0.0.0.0:7860 (default listens on 11434) | |
| ENV OLLAMA_HOST=0.0.0.0:7860 | |
| RUN mkdir -p /.ollama/ && \ | |
| chmod -R 777 /.ollama/ | |
| #RUN py --version | |
| # Let the base image default ENTRYPOINT (ollama binary) run "serve" | |
| CMD ["serve"] | |