- Added package.json for @proj-airi/server-protocol with necessary configurations. - Implemented chat event types including WireMessage, SendMessagesRequest, and PullMessagesRequest. - Defined WebSocket event types and structures for better integration with AIRI components. - Updated server-runtime and server-sdk to utilize the new server-protocol package. - Refactored imports across various packages to replace server-shared types with server-protocol types. - Enhanced type definitions and added TypeScript configurations for better development experience.
25 lines
707 B
Docker
25 lines
707 B
Docker
FROM node:24-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
RUN corepack enable
|
|
|
|
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json tsconfig.json ./
|
|
COPY patches/ ./patches/
|
|
COPY apps/server apps/server
|
|
COPY packages/server-protocol packages/server-protocol
|
|
COPY packages/server-schema packages/server-schema
|
|
COPY packages/plugin-protocol packages/plugin-protocol
|
|
|
|
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
|
|
pnpm install --frozen-lockfile --ignore-scripts
|
|
|
|
RUN pnpm -F @proj-airi/server-schema run build
|
|
RUN pnpm -F @proj-airi/server-protocol run build
|
|
RUN pnpm -F @proj-airi/plugin-protocol run build
|
|
RUN pnpm -F @proj-airi/server run build
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["pnpm", "-F", "@proj-airi/server", "start"]
|