FROM ghcr.io/open-webui/open-webui:main # ── System deps ────────────────────────────────────────────────────────────── RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ git \ cron \ && rm -rf /var/lib/apt/lists/* # ── Install huggingface_hub for dataset sync ────────────────────────────────── RUN pip install --no-cache-dir huggingface_hub --break-system-packages || \ pip install --no-cache-dir huggingface_hub --user # ── Copy scripts ────────────────────────────────────────────────────────────── COPY start.sh /start.sh COPY sync.py /sync.py COPY keepalive.sh /keepalive.sh RUN chmod +x /start.sh /keepalive.sh # ── Expose port (HF Docker Spaces uses app_port from README.md) ─────────────── EXPOSE 8080 # ── Entrypoint ──────────────────────────────────────────────────────────────── CMD ["/start.sh"]