File size: 1,290 Bytes
9c68ba6
 
e91c699
 
 
 
 
 
9c68ba6
 
 
 
 
 
 
 
 
e91c699
 
9c68ba6
 
 
 
 
e91c699
 
 
 
 
9c68ba6
 
 
e91c699
 
9c68ba6
 
 
 
 
e91c699
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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"]