mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-11 11:57:03 -07:00
6872805274
Separate the Google Chat bridge from the A2A agent server so each can scale independently on Cloud Run. The bridge is a lightweight proxy (concurrency=80) while the agent needs concurrency=1. - Add standalone entry point (src/chat-bridge/server.ts) - Add Dockerfile.chat-bridge and cloudbuild-chat-bridge.yaml - Remove chat bridge setup from app.ts - Inline A2UI constants in a2a-bridge-client.ts (no agent deps) - Update README for two-service architecture
24 lines
611 B
Docker
24 lines
611 B
Docker
# Standalone Google Chat bridge server.
|
|
# Connects to the A2A agent server over HTTP — no agent dependencies needed.
|
|
FROM docker.io/library/node:20-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy pre-installed node_modules and pre-built dist
|
|
COPY package.json package-lock.json ./
|
|
COPY node_modules/ node_modules/
|
|
COPY packages/a2a-server/ packages/a2a-server/
|
|
|
|
USER node
|
|
|
|
ENV PORT=8080
|
|
ENV NODE_ENV=production
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["node", "packages/a2a-server/dist/src/chat-bridge/server.js"]
|