Skip to content

Commit b2ea268

Browse files
authored
Merge pull request #136 from kagent-dev/peterj/bringnpxback
install npx on the autogen container + add missing numpy dependency
2 parents eef7168 + b8ed9c1 commit b2ea268

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

python/Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,22 @@ ARG TARGETARCH
3434
RUN apt-get update && apt-get install -y --no-install-recommends \
3535
git \
3636
ca-certificates \
37+
curl \
38+
gnupg \
3739
&& update-ca-certificates \
3840
&& rm -rf /var/lib/apt/lists/*
3941

4042
COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/kubectl
4143
COPY --from=builder /usr/local/bin/istioctl /usr/local/bin/istioctl
4244
COPY --from=builder /usr/local/bin/helm /usr/local/bin/helm
4345

46+
RUN mkdir -p /etc/apt/keyrings \
47+
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
48+
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
49+
&& apt-get update \
50+
&& apt-get install -y nodejs \
51+
&& rm -rf /var/lib/apt/lists/*
52+
4453
ENV PYTHONUNBUFFERED=1 \
4554
PYTHONDONTWRITEBYTECODE=1 \
4655
PIP_NO_CACHE_DIR=1 \

python/pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies = [
2020
"mcp>=1.2.0",
2121
"sqlite-vec>=0.1.0",
2222
"typer",
23+
"numpy>=2.2.3",
2324
]
2425

2526
[project.optional-dependencies]
@@ -70,4 +71,4 @@ asyncio_default_fixture_loop_scope = "function"
7071
python_files = "test_*.py"
7172
python_functions = "test_*"
7273
log_cli = true
73-
log_cli_level = "INFO"
74+
log_cli_level = "INFO"

0 commit comments

Comments
 (0)