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"]