ollama-server-backend / .history /Dockerfile_20240309010353
Rohan Kataria
adding dockerfile
8af09d7
raw
history blame
327 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
WORKDIR /.ollama
# Command to run the application
CMD ollama serve
# Expose the server port
EXPOSE 7860