diff --git a/docker-images/Dockerfile.agent b/docker-images/Dockerfile.agent index 14c46d2..3cdf29d 100644 --- a/docker-images/Dockerfile.agent +++ b/docker-images/Dockerfile.agent @@ -27,6 +27,14 @@ ENV BUN_INSTALL="/root/.bun" ENV PATH="$BUN_INSTALL/bin:$PATH" RUN curl -fsSL https://bun.sh/install | bash +# use bunx for npx +RUN mkdir -p ~/.local/bin && \ + echo '#!/bin/sh' %3E /usr/local/bin/npx && \ + echo 'exec bunx "$@"' >> /usr/local/bin/npx && \ + chmod +x /usr/local/bin/npx + + + # --- NEW SECTION: RUST SETUP --- # 5. Install Rust (Official Script) # Installs Cargo, Rustc, Rustfmt, etc. diff --git a/docker-images/README.md b/docker-images/README.md index 0a49f5e..4c25119 100644 --- a/docker-images/README.md +++ b/docker-images/README.md @@ -1,7 +1,7 @@ # About Builds a docker image called `smart-agent` This provides a [Opencode](https://opencode.ai/docs/) install with custom configuration -This image has development tools including python:3.12, java jdk,BaseX +This image has development tools including python:3.12, uv, rust, java jdk, BaseX A zsh function (zsh.add) is used to invoke the image.