# 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 apt install curl -y | |
RUN curl -fsSL https://ollama.com/install.sh | sh | |
RUN source | |
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 | |
RUN OLLAMA_HOST=0.0.0.0:2563 | |
CMD ["ollama", "serve" ] | |