File size: 318 Bytes
1808f99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ollama/ollama:latest

# Expose your desired port
EXPOSE 7860

# Make Ollama listen on 0.0.0.0:7860 (default listens on 11434)
ENV OLLAMA_HOST=0.0.0.0:7860

RUN mkdir -p /.ollama/ && \
    chmod -R 777 /.ollama/

#RUN py --version

# Let the base image default ENTRYPOINT (ollama binary) run "serve"
CMD ["serve"]