agent docker
Some checks failed
Build and Push Agent Docker Image / build (push) Successful in 1m40s
Build and Push Docker Image / build (push) Failing after 1m7s

This commit is contained in:
2025-12-11 23:45:29 +01:00
parent f326053101
commit ed9c817d5e
6 changed files with 154 additions and 84 deletions

14
web/agent/.dockerignore Normal file
View 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
View 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"}'

View File

@@ -4,7 +4,7 @@
"dependencies": ["."],
"package_manager": "uv",
"graphs": {
"sample_agent": "./main.py:graph"
"vpi_1000": "./main.py:graph"
},
"env": ".env"
}

View File

@@ -1,5 +1,5 @@
[project]
name = "sample-agent"
name = "vpi-1000"
version = "0.1.0"
description = "A LangGraph agent"
requires-python = ">=3.12"