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"
|
||||
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 ---
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue