Spaces:
Sleeping
Sleeping
Commit History
-
Add single-container build for Hugging Face Spaces deploy
Aissugur Kurganbekov +1: Claude Opus 4.8One image where FastAPI serves both the built React app and the API, so the app runs on a single port with one public URL (no CORS, no laptop). - app/server.py: parent app that mounts the existing API under /api and serves the Vite build (copied to ./static) at /. Tests, local dev, and the existing two-container docker-compose are untouched. - Dockerfile (repo root): multi-stage — build the frontend, then a Python image that serves it via app.server:root on port 7860, as UID 1000. - README front-matter (sdk: docker, app_port: 7860) so HF Spaces builds it. - .dockerignore + gitignore the local backend/static build artifact. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>81e0253