File size: 783 Bytes
ede350d 75ed1cb ede350d 9f87d31 9517cd0 ede350d 9f87d31 ede350d 9f87d31 ede350d 9f87d31 ede350d 9f87d31 ede350d 9f87d31 ede350d 9f87d31 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # 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"]
|