FROM python:3.11-slim # Install dependencies RUN apt update && apt install -y curl && rm -rf /var/lib/apt/lists/* # Install Ollama RUN curl -fsSL https://ollama.com/install.sh | bash # Install OpenWebUI using pip RUN pip install open-webui # Expose the web UI port EXPOSE 3000 # Start Ollama and OpenWebUI CMD ["bash", "-c", "ollama serve & ollama pull llama3.2 & open-webui serve"]