# 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" ] | |