openwebui / Dockerfile
abc1181's picture
Update Dockerfile
2347adc verified
FROM ghcr.io/open-webui/open-webui:main
ENV WEBUI_AUTH=False
ENV WEBUI_SECRET_KEY=obsidian-secret-key
ENV OPENAI_API_BASE_URL=https://abc1181-ollama-tools.hf.space/v1
ENV OPENAI_API_KEY=your-api-key-here
ENV OLLAMA_BASE_URL=""
ENV ENABLE_OLLAMA_API=False
ENV DEFAULT_MODELS="Obsidian Fast ⚑"
# βœ… Disable RAG embedding model β€” biggest RAM saver
ENV RAG_EMBEDDING_ENGINE=openai
ENV RAG_EMBEDDING_MODEL=text-embedding-3-small
ENV ENABLE_RAG_WEB_SEARCH=False
ENV ENABLE_RAG_LOCAL_WEB_FETCH=False
# βœ… Disable other heavy features
ENV ENABLE_IMAGE_GENERATION=False
ENV ENABLE_COMMUNITY_SHARING=False
ENV ENABLE_TELEMETRY=False
# βœ… Disable automatic model downloads
ENV OFFLINE_MODE=True
ENV DATA_DIR=/app/backend/data
EXPOSE 8080
# βœ… Fixed β€” use the image's own startup script, not uvicorn directly
CMD ["bash", "/app/backend/start.sh"]