ollama-server / Dockerfile
Yaya86's picture
Update Dockerfile
ef9ad6a verified
raw
history blame
488 Bytes
# Builder stage
FROM ubuntu:latest
RUN apt update && apt install curl -y
RUN curl -fsSL https://ollama.com/install.sh | sh
ENV OLLAMA_HOST=0.0.0.0
RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
RUN ollama
RUN ollama pull mixtral && ollama pull nomic-embed-text
# Create the directory and give appropriate permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama
CMD ollama serve
USER appuser
# Command to run the application
# Expose the server port
EXPOSE 7860