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.

feat(robinhood-feed): add the container image for the feed worker

nirholas522359321dd4
diff --git a/workers/robinhood-feed/Dockerfile b/workers/robinhood-feed/Dockerfile
new file mode 100644
index 000000000..740c8070e
--- /dev/null
+++ b/workers/robinhood-feed/Dockerfile
@@ -0,0 +1,45 @@
+# robinhood-feed: long-lived Node worker (Cloud Run service, HTTP + WS + SSE).
+#
+# Build from the REPO ROOT: the worker depends on the local hoodchain SDK via
+# `file:../../robinhood/robinhood-chain-sdk`, so that directory has to be inside
+# the build context. A context scoped to workers/robinhood-feed alone (what
+# `gcloud run deploy --source workers/robinhood-feed` would send) cannot resolve
+# the dependency and fails at install time.
+#
+# docker build -f workers/robinhood-feed/Dockerfile -t robinhood-feed .
+# docker run -p 8788:8788 -e PORT=8788 robinhood-feed
+
+# ── stage 1: build the SDK's dist/ (TypeScript source, dist/ is gitignored) ────
+FROM node:24-slim AS sdk
+
+WORKDIR /sdk
+COPY robinhood/robinhood-chain-sdk/package.json robinhood/robinhood-chain-sdk/package-lock.json ./
+# devDeps on purpose: tsup + typescript build the dist/ every export resolves into.
+RUN npm ci --no-audit --no-fund
+COPY robinhood/robinhood-chain-sdk ./
+RUN npm run build
+
+# ── stage 2: runtime ──────────────────────────────────────────────────────────
+FROM node:24-slim
+
+WORKDIR /app
+
+# The built SDK, shaped as a consumable package (its own `files` list: dist +
+# package.json + docs). Path matches the worker's file: specifier.
+COPY --from=sdk /sdk/package.json /sdk/README.md /sdk/LICENSE ./robinhood/robinhood-chain-sdk/
+COPY --from=sdk /sdk/dist ./robinhood/robinhood-chain-sdk/dist
+
+# Worker deps first for layer caching. The file: dependency resolves to the
+# directory copied above, which now carries dist/.
+COPY workers/robinhood-feed/package.json workers/robinhood-feed/package-lock.json ./workers/robinhood-feed/
+RUN npm --prefix workers/robinhood-feed ci --omit=dev --no-audit --no-fund
+
+COPY workers/robinhood-feed ./workers/robinhood-feed
+
+# Cloud Run injects PORT; 8788 is the local default the README and the API's
+# ROBINHOOD_FEED_URL fallback both use.
+ENV NODE_ENV=production \
+ PORT=8788
+EXPOSE 8788
+
+CMD ["node", "workers/robinhood-feed/index.js"]