-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 1.01 KB
/
Copy pathDockerfile
File metadata and controls
21 lines (18 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.12-slim
# git: forge clones public repos at request time. ffmpeg: transcode shared build clips to H.264 mp4 (og:video inline play)
RUN apt-get update && apt-get install -y --no-install-recommends git ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir ".[card]"
# showcase mode: serve the baked BLACKBOX fixtures, no live git on this repo.
# the demo lands on one impressive city; ?nation still opens the full map.
ENV AGENTOPOLIS_SHOWCASE=/app/agentopolis/showcase
ENV AGENTOPOLIS_DEMO_CITY=methodproof
# absolute base for og:image so shared links unfurl with the captured skyline
ENV AGENTOPOLIS_PUBLIC_URL=https://agentopolis.codeblackwell.ai
# funnel counters persist here across rebuilds (compose mounts /data as a volume)
ENV AGENTOPOLIS_STATS_FILE=/data/stats.json
EXPOSE 8000
HEALTHCHECK CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"
CMD ["uvicorn", "agentopolis.server:app", "--host", "0.0.0.0", "--port", "8000"]