Download Dockerfile from Manjuc21/openwebui: direct link, hf CLI and curl.
- Browser
- Download file 783 Bytes
-
https://huggingface.co/spaces/Manjuc21/openwebui/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Manjuc21/openwebui/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Manjuc21/openwebui/resolve/main/Dockerfile
783 Bytes
| 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"] | |