papaduvalier's picture
create Docker file with special system papameter
ff9bf87 verified
raw
history blame contribute delete
337 Bytes
FROM ollama/ollama:latest
RUN apt-get update && apt-get install curl -y
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
COPY --chown=user:user Modelfile $HOME/app/
RUN ollama serve & sleep 5 && ollama create gemma -f Modelfile
EXPOSE 11434