FROM ghcr.io/open-webui/open-webui:main USER root # Hugging Face Space wiring ENV PORT=7860 ENV UVICORN_WORKERS=1 # Writable storage ENV DATA_DIR=/data ENV HF_HOME=/data/.cache #ENV DATABASE_URL=sqlite:///${DATA_DIR}/webui.db ENV DATABASE_URL=$DATABASE_URL ENV GLOBAL_LOG_LEVEL=ERROR ENV ENABLE_OLLAMA=false # Create & symlink RUN mkdir -p /data /data/.cache && \ chmod -R 777 /data && \ rm -rf /app/backend/data && \ ln -s /data /app/backend/data EXPOSE 7860 # Tell uvicorn to listen on $PORT (7860) inside the container # CMD ["uvicorn", "open_webui.main:app", "--host", "0.0.0.0", "--port", "7860"] CMD ["uvicorn", "open_webui.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload", "--log-level", "error"]