mod: node - bun

This commit is contained in:
Andy Bunce 2026-03-16 16:24:32 +00:00
parent b38340b72f
commit be677cae50

View file

@ -27,12 +27,10 @@ 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
# use bun for node, npx
RUN cd /usr/local/bin && \
echo '#!/bin/sh' %3E npx && echo 'exec bunx "$@"' >> npx && chmod +x npx && \
echo '#!/bin/sh' %3E node && echo 'exec bun "$@"' >> node && chmod +x node
# --- NEW SECTION: RUST SETUP ---