mod: npx for bunx

This commit is contained in:
Andy Bunce 2026-03-16 15:56:41 +00:00
parent 50e6115351
commit b38340b72f
2 changed files with 9 additions and 1 deletions

View file

@ -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.