File size: 372 Bytes
c8ff5b2
 
b9fefcc
 
b0dee4e
 
 
 
b9fefcc
c8ff5b2
b0dee4e
 
 
 
 
c8ff5b2
 
 
b0dee4e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ollama/ollama:latest

WORKDIR /app

# Install Ollama
RUN curl https://ollama.ai/install.sh | sh

# Create the directory and give appropriate permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama

# Ensure Ollama binary is in the PATH
ENV PATH="/app/venv/bin:/root/.ollama/bin:$PATH"

COPY ollama.sh /app
RUN chmod +x /ollama.sh

EXPOSE 11434

ENTRYPOINT ["/ollama"]