Spaces:
Running
Running
| # ER-MAP OpenEnv server image | |
| # --------------------------------------------------------------------------- | |
| # Builds the ER-MAP multi-agent dashboard for HF Spaces / local Docker. | |
| # The dashboard serves the interactive React UI (Agent Canvas) with live | |
| # multi-agent simulation, TTS, and real-time reward tracking. | |
| # | |
| # For training-only deps (torch / unsloth / trl), use a separate | |
| # environment with requirements.txt fully installed. | |
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| # Install runtime deps for the dashboard (Flask-based UI + FastAPI env server). | |
| # Training deps are excluded to keep the image small. | |
| RUN pip install --upgrade pip && pip install \ | |
| "gymnasium>=0.29.0" \ | |
| "groq>=0.4.0" \ | |
| "fastapi>=0.110.0" \ | |
| "uvicorn[standard]>=0.27.0" \ | |
| "pydantic>=2.0.0" \ | |
| "flask>=3.0.0" \ | |
| "elevenlabs>=1.0.0" \ | |
| "huggingface_hub>=0.25.0" \ | |
| "requests>=2.31.0" | |
| COPY ER_MAP /app/ER_MAP | |
| COPY README.md /app/README.md | |
| COPY blog.md /app/blog.md | |
| COPY baseline_eval /app/baseline_eval | |
| # HF Spaces convention: app listens on $PORT (default 7860). | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Serve the interactive dashboard (React + Flask) instead of the bare API. | |
| CMD ["python", "-m", "ER_MAP.dashboard"] | |