Files
copilotkit__copilotkit/examples/integrations/langgraph-js/docker/Dockerfile.agent
2026-04-09 08:33:21 -07:00

21 lines
493 B
Docker

# Dockerfile for the LangGraph JS agent.
# Mirrors the user experience: pnpm install + langgraph-cli dev.
FROM node:22-alpine
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@latest --activate
# Copy agent package files
COPY package.json ./
COPY langgraph.json ./
COPY tsconfig.json ./
COPY src/ ./src/
# Install dependencies
RUN pnpm install --no-frozen-lockfile
EXPOSE 8123
CMD ["npx", "@langchain/langgraph-cli", "dev", "--host", "0.0.0.0", "--port", "8123", "--no-browser"]