mod: node - bun
This commit is contained in:
parent
b38340b72f
commit
be677cae50
1 changed files with 4 additions and 6 deletions
|
|
@ -27,12 +27,10 @@ ENV BUN_INSTALL="/root/.bun"
|
||||||
ENV PATH="$BUN_INSTALL/bin:$PATH"
|
ENV PATH="$BUN_INSTALL/bin:$PATH"
|
||||||
RUN curl -fsSL https://bun.sh/install | bash
|
RUN curl -fsSL https://bun.sh/install | bash
|
||||||
|
|
||||||
# use bunx for npx
|
# use bun for node, npx
|
||||||
RUN mkdir -p ~/.local/bin && \
|
RUN cd /usr/local/bin && \
|
||||||
echo '#!/bin/sh' %3E /usr/local/bin/npx && \
|
echo '#!/bin/sh' %3E npx && echo 'exec bunx "$@"' >> npx && chmod +x npx && \
|
||||||
echo 'exec bunx "$@"' >> /usr/local/bin/npx && \
|
echo '#!/bin/sh' %3E node && echo 'exec bun "$@"' >> node && chmod +x node
|
||||||
chmod +x /usr/local/bin/npx
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# --- NEW SECTION: RUST SETUP ---
|
# --- NEW SECTION: RUST SETUP ---
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue