gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/images/gpu/ollama/singlemodel/Dockerfile.x86_64 (about) 1 # https://hub.docker.com/r/ollama/ollama 2 FROM ollama/ollama:0.1.26 3 4 ENV PATH=$PATH:/usr/local/nvidia/bin:/bin/nvidia/bin 5 ENV OLLAMA_ORIGINS=* 6 ENV OLLAMA_HOST=0.0.0.0:11434 7 8 # Pre-install a single model. 9 RUN bash -c ' \ 10 ( ollama serve ) & serverpid="$!"; \ 11 sleep 5; \ 12 ollama pull mixtral:instruct && \ 13 kill "$serverpid" && \ 14 wait "$serverpid" \ 15 '