# Start from the base image of open-webui FROM ghcr.io/open-webui/open-webui:main # Set environment variables ENV OLLAMA_BASE_URL=http://localhost:11434 ENV DEFAULT_MODEL=llama3.2b # # Install necessary packages RUN apt-get update && apt-get install -y \ curl \ wget \ supervisor \ && rm -rf /var/lib/apt/lists/* # # Install Ollama # RUN curl -sSL https://ollama.ai/install.sh | bash # # Expose necessary ports # EXPOSE 8080 11434 # # Create necessary directories for volumes # RUN mkdir -p /root/.ollama /app/backend/data # # Copy supervisord configuration # COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf # # Set volumes # VOLUME ["/root/.ollama", "/app/backend/data"] # # Set the entrypoint to supervisord # CMD ["/usr/bin/supervisord"]