Spaces:
Runtime error
Runtime error
File size: 705 Bytes
b93ecc4 6d4a2c1 b93ecc4 1b822f8 b93ecc4 3e1fb80 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# 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"]
|