Skip to content

Commit cd0b555

Browse files
committed
feature: iocmd: io: nvm
1 parent 09a8b2b commit cd0b555

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

docker/Dockerfile.io

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,27 @@ RUN apt-get update && apt-get upgrade && apt-get autoremove && \
2020
echo "> install nvm" && \
2121
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \
2222
mv ~/.nvm /usr/local/src/nvm && \
23-
chmod a+rwx /usr/local/src/nvm && \
24-
. /usr/local/src/nvm/nvm.sh && \
2523
echo "> install npm globals" && \
2624
npm i wisdom nupdate version-io redrun superc8 \
2725
supertape madrun redlint putout renamify-cli runny redfork -g && \
2826
echo "> install bun" && \
2927
curl -fsSL https://bun.sh/install | bash && \
3028
mv ~/.bun /usr/local/src/bun && \
31-
chmod a+rwx /usr/local/src/bun && \
3229
ln -s /usr/local/src/bun/bin/bun /usr/local/bin/bun && \
3330
echo "> install deno" && \
3431
curl -fsSL https://deno.land/install.sh | sh && \
3532
mv ~/.deno /usr/local/src/deno && \
36-
chmod a+rwx /usr/local/src/deno && \
3733
ln -s /usr/local/src/deno/bin/deno /usr/local/bin/deno && \
3834
echo "> install golang" && \
3935
curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz -o go.tar.gz && \
40-
tar -C /usr/local -xzf go.tar.gz && \
36+
tar -C /usr/local/src -xzf go.tar.gz && \
4137
rm go.tar.gz && \
42-
ln -s /usr/local/go/bin/go /usr/local/bin/go && \
43-
ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt && \
38+
ln -s /usr/local/src/go/bin/go /usr/local/bin/go && \
39+
ln -s /usr/local/src/go/bin/gofmt /usr/local/bin/gofmt && \
4440
echo "> install rust" && \
4541
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
4642
mv ~/.cargo /usr/local/src/cargo && \
47-
chmod a+rwx /usr/local/src/cargo && \
43+
rustup default stable
4844
echo "> install gritty" && \
4945
bun r gritty --omit dev && \
5046
bun i gritty --omit dev && \
@@ -56,6 +52,7 @@ RUN apt-get update && apt-get upgrade && apt-get autoremove && \
5652
echo "alias ls='ls --color=auto'" >> /etc/bash.bashrc && \
5753
echo "alias buni='bun i --no-save'" >> /etc/bash.bashrc && \
5854
echo "alias bat='batcat'" >> /etc/bash.bashrc && \
55+
echo ". /usr/local/src/nvm/nvm.sh" >> /etc/bash.bashrc && \
5956
echo 'PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "' >> /etc/bash.bashrc && \
6057
echo "> setup inputrc" && \
6158
echo "set editing-mode vi" >> /etc/inputrc && \

0 commit comments

Comments
 (0)