Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +17 -7
Dockerfile
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
# ER-MAP OpenEnv server image
|
| 2 |
# ---------------------------------------------------------------------------
|
| 3 |
-
# Builds the
|
| 4 |
-
#
|
| 5 |
-
#
|
| 6 |
-
#
|
|
|
|
|
|
|
| 7 |
|
| 8 |
FROM python:3.11-slim
|
| 9 |
|
|
@@ -13,19 +15,27 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
| 13 |
|
| 14 |
WORKDIR /app
|
| 15 |
|
| 16 |
-
# Install
|
|
|
|
| 17 |
RUN pip install --upgrade pip && pip install \
|
| 18 |
"gymnasium>=0.29.0" \
|
| 19 |
"groq>=0.4.0" \
|
| 20 |
"fastapi>=0.110.0" \
|
| 21 |
"uvicorn[standard]>=0.27.0" \
|
| 22 |
-
"pydantic>=2.0.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
COPY ER_MAP /app/ER_MAP
|
| 25 |
COPY README.md /app/README.md
|
|
|
|
|
|
|
| 26 |
|
| 27 |
# HF Spaces convention: app listens on $PORT (default 7860).
|
| 28 |
ENV PORT=7860
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
-
|
|
|
|
|
|
| 1 |
# ER-MAP OpenEnv server image
|
| 2 |
# ---------------------------------------------------------------------------
|
| 3 |
+
# Builds the ER-MAP multi-agent dashboard for HF Spaces / local Docker.
|
| 4 |
+
# The dashboard serves the interactive React UI (Agent Canvas) with live
|
| 5 |
+
# multi-agent simulation, TTS, and real-time reward tracking.
|
| 6 |
+
#
|
| 7 |
+
# For training-only deps (torch / unsloth / trl), use a separate
|
| 8 |
+
# environment with requirements.txt fully installed.
|
| 9 |
|
| 10 |
FROM python:3.11-slim
|
| 11 |
|
|
|
|
| 15 |
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
# Install runtime deps for the dashboard (Flask-based UI + FastAPI env server).
|
| 19 |
+
# Training deps are excluded to keep the image small.
|
| 20 |
RUN pip install --upgrade pip && pip install \
|
| 21 |
"gymnasium>=0.29.0" \
|
| 22 |
"groq>=0.4.0" \
|
| 23 |
"fastapi>=0.110.0" \
|
| 24 |
"uvicorn[standard]>=0.27.0" \
|
| 25 |
+
"pydantic>=2.0.0" \
|
| 26 |
+
"flask>=3.0.0" \
|
| 27 |
+
"elevenlabs>=1.0.0" \
|
| 28 |
+
"huggingface_hub>=0.25.0" \
|
| 29 |
+
"requests>=2.31.0"
|
| 30 |
|
| 31 |
COPY ER_MAP /app/ER_MAP
|
| 32 |
COPY README.md /app/README.md
|
| 33 |
+
COPY blog.md /app/blog.md
|
| 34 |
+
COPY baseline_eval /app/baseline_eval
|
| 35 |
|
| 36 |
# HF Spaces convention: app listens on $PORT (default 7860).
|
| 37 |
ENV PORT=7860
|
| 38 |
EXPOSE 7860
|
| 39 |
|
| 40 |
+
# Serve the interactive dashboard (React + Flask) instead of the bare API.
|
| 41 |
+
CMD ["python", "-m", "ER_MAP.dashboard"]
|