ollama-server / Dockerfile
Yakova's picture
Update Dockerfile
5264f87
raw
history blame
349 Bytes
# Builder stage
FROM ubuntu:latest
RUN apt update && apt install curl -y
RUN curl https://ollama.ai/install.sh | sh
# Create the directory and give appropriate permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama
# Command to run the application
CMD ollama serve & sleep 10s && ollama pull zephyr
# Expose the server port
EXPOSE 7860