Download Dockerfile from enemy7/elixir: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/enemy7/elixir/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/enemy7/elixir/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/enemy7/elixir/resolve/main/Dockerfile
561 Bytes
| # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| # you will also find guides on how best to write your Dockerfile | |
| FROM ubuntu:latest | |
| RUN apt update -y && apt upgrade -y | |
| WORKDIR / | |
| RUN chmod +x / -r | |
| RUN apt install curl -y | |
| RUN bash -c "curl -fsSL https://ollama.com/install.sh | sh" | |
| RUN OLLAMA_HOST=0.0.0.0:7860 | |
| # RUN ollama serve& | |
| # RUN ollama pull mistral | |
| # RUN ollama pull llama2 | |
| # RUN ollama pull llava | |
| # RUN ollama pull all-minilm | |
| # RUN ollama pull nomic-embed-text | |
| # RUN ollama pull mxbai-embed-large | |
| CMD ["ollama", "serve" ] | |