Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(video2motion): explain why a headless image installs libgl1

nirholas515dac41b095
diff --git a/workers/model-video2motion/Dockerfile b/workers/model-video2motion/Dockerfile
index 80dbc4d92..ec8439a4b 100644
--- a/workers/model-video2motion/Dockerfile
+++ b/workers/model-video2motion/Dockerfile
@@ -4,6 +4,10 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
+# ffmpeg does the video normalization and mask encoding. libgl1/libglib2.0-0 are
+# not optional despite this being a headless service: mediapipe depends on the
+# non-headless opencv-contrib-python, which installs alongside our pinned
+# opencv-python-headless and links libGL, so `import cv2` fails without them.
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg libgl1 libglib2.0-0 curl \
&& rm -rf /var/lib/apt/lists/*