FROM ubuntu RUN apt-get update && \ apt-get install -y --no-install-recommends ca-certificates wget && \ wget -O /usr/local/bin/ollama https://github.com/ollama/ollama/releases/latest/download/ollama-linux-amd64 &&\ chmod +x /usr/local/bin/ollama ENV OLLAMA_HOST="0.0.0.0:7860" ENV OLLAMA_ORIGINS="*" CMD ["sh", "-c", "ollama serve & sleep 10 && ollama run llama3 && sleep infinity"]