ollama / Dockerfile
PyxiLabs's picture
Create Dockerfile
9b39653 verified
raw
history blame contribute delete
364 Bytes
FROM ollama/ollama:latest
# https://huggingface.co/docs/hub/spaces-sdks-docker-first-demo
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
OLLAMA_HOST=0.0.0.0
WORKDIR $HOME/app
RUN ollama serve \
& sleep 5 \
&& ollama run Whyimhere/Pyx-r1-mini \
&& echo "Done. Stop Ollama..." \
&& pkill ollama