ollama-inference / Dockerfile
cenrak's picture
Update Dockerfile
97ee399 verified
raw
history blame
No virus
356 Bytes
FROM ollama/ollama:latest
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
OLLAMA_HOST=0.0.0.0:7860
# Set the working directory to the user's home directory
WORKDIR $HOME/app
EXPOSE 7860
ENTRYPOINT ["/bin/ollama"]
CMD ["serve"]