# Forge demo — single container serves the API + static frontend over the # prebuilt forge.db. No scraping / no LLM at runtime (that's build-time, local), # so this stays tiny and CPU-only — fits a free HF Docker Space. FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY forge/ ./forge/ COPY frontend/ ./frontend/ # Bake the prebuilt graph if it shipped in the build context; otherwise seed a # fresh curated graph so the Space always boots with something. RUN test -f forge/forge.db || python -m forge.seed EXPOSE 7860 CMD ["uvicorn", "forge.api:app", "--host", "0.0.0.0", "--port", "7860"]