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.

1.2 KB
Raw Blame
# hood-traders — autonomous trading fleet for Robinhood Chain.
#
# Self-contained build: `hoodchain` resolves from npm as a normal dependency,
# so this Dockerfile only needs this repo as its build context.
#
#   docker build -t hood-traders .
#   docker compose up --build

FROM node:20-slim AS build
WORKDIR /app

# better-sqlite3 needs a C++ toolchain to compile its native addon.
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ \
    && rm -rf /var/lib/apt/lists/*

COPY package.json package-lock.json* ./
RUN npm install
COPY tsconfig.json tsup.config.ts ./
COPY src ./src
RUN npm run build

FROM node:20-slim AS runtime
ENV NODE_ENV=production

RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ \
    && rm -rf /var/lib/apt/lists/* \
    && useradd --create-home --uid 1001 hood

WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install --omit=dev && npm rebuild better-sqlite3 && \
    apt-get purge -y python3 make g++ 2>/dev/null || true

COPY --from=build /app/dist ./dist
COPY dashboard ./dashboard

RUN mkdir -p /app/data && chown -R hood:hood /app
USER hood

EXPOSE 4670
VOLUME ["/app/data"]

CMD ["node", "dist/main.js"]