File tree Expand file tree Collapse file tree
agents/base/openai_responses_agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,13 +5,19 @@ WORKDIR /app
55
66RUN groupadd -r appuser && useradd -r -u 1001 -g appuser appuser
77
8- COPY requirements.txt .
9- RUN pip install --no-cache-dir --upgrade pip && \
10- pip install --no-cache-dir -r requirements.txt
8+ # Install uv for fast dependency management
9+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
1110
12- COPY main.py .
11+ # Copy project files for dependency installation
12+ COPY pyproject.toml .
1313COPY src/ ./src/
1414
15+ # Install the project and its dependencies using uv
16+ RUN uv pip install --system --no-cache .
17+
18+ # Copy the application entrypoint
19+ COPY main.py .
20+
1521RUN chown -R appuser:appuser /app
1622USER appuser
1723
Original file line number Diff line number Diff line change 1- [tool . poetry ]
1+ [project ]
22name = " openai_responses_agent_base"
33version = " 0.1.0"
44description = " Agent without any agentic framework: OpenAI client and pure Python (Responses API)."
5- authors = [" Your Name <you@example.com>" ]
6- license = " MIT"
7- packages = [
8- { include = " openai_responses_agent_base" , from = " src" }
5+ authors = [{ name = " Your Name" , email = " you@example.com" }]
6+ license = { text = " MIT" }
7+ requires-python = " >=3.12, <3.14"
8+ dependencies = [
9+ " python-dotenv>=1.2.2" ,
10+ " openai>=2.24.0" ,
11+ " llama-stack>=0.5.1" ,
12+ " milvus-lite==2.5.1" ,
13+ " setuptools>=80.9.0,<82.0.0" ,
914]
1015
11- [tool .poetry .dependencies ]
12- python = " >=3.12, <3.14"
13- python-dotenv = " >=1.2.2"
14- openai = " >=2.24.0"
15- llama-stack = " >=0.5.1"
16- milvus-lite = " 2.5.1"
17- setuptools = " >=80.9.0,<82.0.0"
18-
19- [tool .poetry .group .dev ]
20- optional = true
16+ [project .optional-dependencies ]
17+ dev = [
18+ " pytest>=9.0.2" ,
19+ ]
2120
22- [tool .poetry . group . dev . dependencies ]
23- pytest = " >=9.0.2 "
21+ [tool .setuptools . packages . find ]
22+ where = [ " src " ]
2423
2524[build-system ]
26- requires = [" poetry-core " ]
27- build-backend = " poetry.core.masonry.api "
25+ requires = [" setuptools>=80.9.0 " ]
26+ build-backend = " setuptools.build_meta "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments