agent docker
This commit is contained in:
14
web/agent/.dockerignore
Normal file
14
web/agent/.dockerignore
Normal file
@@ -0,0 +1,14 @@
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
.env
|
||||
.env.*
|
||||
.venv/
|
||||
venv/
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*.pyo
|
||||
.langgraph_api/
|
||||
.vercel/
|
||||
*.md
|
||||
13
web/agent/Dockerfile
Normal file
13
web/agent/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM langchain/langgraph-api:3.12
|
||||
|
||||
# Copy dependency files and install
|
||||
ADD pyproject.toml uv.lock /deps/agent/
|
||||
RUN cd /deps/agent && pip install --no-cache-dir -e .
|
||||
|
||||
# Copy application code
|
||||
ADD main.py langgraph.json /deps/agent/
|
||||
|
||||
# Set the graph configuration
|
||||
ENV LANGSERVE_GRAPHS='{"vpi_1000": "/deps/agent/main.py:graph"}'
|
||||
@@ -4,7 +4,7 @@
|
||||
"dependencies": ["."],
|
||||
"package_manager": "uv",
|
||||
"graphs": {
|
||||
"sample_agent": "./main.py:graph"
|
||||
"vpi_1000": "./main.py:graph"
|
||||
},
|
||||
"env": ".env"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[project]
|
||||
name = "sample-agent"
|
||||
name = "vpi-1000"
|
||||
version = "0.1.0"
|
||||
description = "A LangGraph agent"
|
||||
requires-python = ">=3.12"
|
||||
|
||||
Reference in New Issue
Block a user