# Use the latest Node.js LTS version FROM node:latest # Install pnpm globally RUN npm install -g pnpm # Set working directory WORKDIR /app # Copy dist directory to the container COPY dist ./dist COPY package.json ./ COPY langgraph.json ./ # Install dependencies using pnpm RUN pnpm install # Create necessary directories and files for LangGraph RUN mkdir -p .langgraph_api && \ touch .gitignore && \ touch .langgraph_api/.langgraphjs_api.checkpointer.json && \ touch .langgraph_api/.langgraphjs_api.store.json && \ chmod -R 777 .langgraph_api && \ chmod 666 .gitignore # Expose the port EXPOSE 7860 # Start the LangGraph agent server CMD ["pnpm", "run", "dev:agent:langgraph"]