Spaces:
Running
Running
Commit History
-
Deploy the wizard UI as a Docker Space (sdk: docker + HF OAuth)
malteosUnverified signature- Dockerfile: small python:3.12-slim image running uvicorn on 7860 (only the web shell + huggingface_hub; jobs install their own duckdb/cdxt). --proxy-headers for the HF Spaces proxy. .dockerignore keeps .venv/tests out of the build context. - README: switch frontmatter to sdk: docker + app_port: 7860 (drop gradio sdk_version / app_file); keep hf_oauth + write-repos/jobs scopes. - OAuth hardened for the Space: build the callback from SPACE_HOST, request openid+profile alongside the app scopes, RedirectResponse home after login, https-only session cookie. - Fix: token_for/user_for must not touch request.session when SessionMiddleware is absent (guest hfjobs mode) — check request.scope for "session" instead. Without this /api/* 500'd on the Space. Caught by building + running the image locally. Verified locally (podman build + run): serves the wizard in hfjobs guest mode (/api/config, static assets 200) and /login 302s to huggingface.co/oauth/authorize with the correct cli…a9e3534