Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

698 B
Raw Blame
# Mastra, as a Bot. Bun and Mastra's own server, because Mastra serves its AG-UI route itself
# rather than handing back a handler to mount.
FROM oven/bun:1.4-alpine

WORKDIR /app
COPY agent-mastra/package.json ./
RUN bun install

COPY shared/listen-port.ts /shared/listen-port.ts
COPY shared/model-providers.ts /shared/model-providers.ts
COPY shared/model-providers.json /shared/model-providers.json
COPY agent-mastra/src ./src

# Built at image time, not at start: `mastra start` runs a bundle, and building on every container
# start would put a build step in front of a person waiting for a Bot.
RUN bunx mastra build --dir src/mastra

ENV PORT=4213
EXPOSE 4213
CMD ["bunx", "mastra", "start"]