feat(brain): @mosaic/brain structured data service (#11)

Co-authored-by: Jason Woltje <jason@diversecanvas.com>
Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #11.
This commit is contained in:
2026-03-11 01:12:47 +00:00
committed by jason.woltje
parent 5adb711a67
commit d3d9826076
13 changed files with 2346 additions and 0 deletions

18
packages/brain/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json tsconfig.json ./
COPY src/ src/
# In standalone mode, @mosaic/types is bundled or installed from registry
RUN npm install && npm run build
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/dist/ dist/
COPY --from=builder /app/node_modules/ node_modules/
COPY package.json ./
ENV NODE_ENV=production
ENV PORT=8100
ENV MOSAIC_BRAIN_DATA_DIR=/data
EXPOSE 8100
VOLUME /data
CMD ["node", "dist/index.js"]