ollama / Dockerfile
axebps's picture
Update Dockerfile
d9a440b verified
raw
history blame contribute delete
392 Bytes
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"]