mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 08:56:20 +00:00
feature: iocmd: io: nvm
This commit is contained in:
parent
09a8b2bd1c
commit
2b29448062
1 changed files with 7 additions and 9 deletions
|
|
@ -8,6 +8,8 @@ WORKDIR /usr/src/cloudcmd
|
|||
COPY package.json /usr/src/cloudcmd/
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV PATH=/usr/local/src/cargo/bin:$PATH
|
||||
|
||||
ARG GO_VERSION=1.21.2
|
||||
|
||||
RUN apt-get update && apt-get upgrade && apt-get autoremove && \
|
||||
|
|
@ -20,31 +22,27 @@ RUN apt-get update && apt-get upgrade && apt-get autoremove && \
|
|||
echo "> install nvm" && \
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \
|
||||
mv ~/.nvm /usr/local/src/nvm && \
|
||||
chmod a+rwx /usr/local/src/nvm && \
|
||||
. /usr/local/src/nvm/nvm.sh && \
|
||||
echo "> install npm globals" && \
|
||||
npm i wisdom nupdate version-io redrun superc8 \
|
||||
supertape madrun redlint putout renamify-cli runny redfork -g && \
|
||||
echo "> install bun" && \
|
||||
curl -fsSL https://bun.sh/install | bash && \
|
||||
mv ~/.bun /usr/local/src/bun && \
|
||||
chmod a+rwx /usr/local/src/bun && \
|
||||
ln -s /usr/local/src/bun/bin/bun /usr/local/bin/bun && \
|
||||
echo "> install deno" && \
|
||||
curl -fsSL https://deno.land/install.sh | sh && \
|
||||
mv ~/.deno /usr/local/src/deno && \
|
||||
chmod a+rwx /usr/local/src/deno && \
|
||||
ln -s /usr/local/src/deno/bin/deno /usr/local/bin/deno && \
|
||||
echo "> install golang" && \
|
||||
curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz -o go.tar.gz && \
|
||||
tar -C /usr/local -xzf go.tar.gz && \
|
||||
tar -C /usr/local/src -xzf go.tar.gz && \
|
||||
rm go.tar.gz && \
|
||||
ln -s /usr/local/go/bin/go /usr/local/bin/go && \
|
||||
ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt && \
|
||||
ln -s /usr/local/src/go/bin/go /usr/local/bin/go && \
|
||||
ln -s /usr/local/src/go/bin/gofmt /usr/local/bin/gofmt && \
|
||||
echo "> install rust" && \
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
|
||||
mv ~/.cargo /usr/local/src/cargo && \
|
||||
chmod a+rwx /usr/local/src/cargo && \
|
||||
rustup default stable && \
|
||||
echo "> install gritty" && \
|
||||
bun r gritty --omit dev && \
|
||||
bun i gritty --omit dev && \
|
||||
|
|
@ -56,6 +54,7 @@ RUN apt-get update && apt-get upgrade && apt-get autoremove && \
|
|||
echo "alias ls='ls --color=auto'" >> /etc/bash.bashrc && \
|
||||
echo "alias buni='bun i --no-save'" >> /etc/bash.bashrc && \
|
||||
echo "alias bat='batcat'" >> /etc/bash.bashrc && \
|
||||
echo ". /usr/local/src/nvm/nvm.sh" >> /etc/bash.bashrc && \
|
||||
echo 'PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "' >> /etc/bash.bashrc && \
|
||||
echo "> setup inputrc" && \
|
||||
echo "set editing-mode vi" >> /etc/inputrc && \
|
||||
|
|
@ -79,7 +78,6 @@ ENV cloudcmd_terminal_path=gritty
|
|||
ENV cloudcmd_open=false
|
||||
|
||||
ENV PATH=node_modules/.bin:$PATH
|
||||
ENV PATH=/usr/local/src/cargo/bin:$PATH
|
||||
|
||||
ENV BUN_INSTALL_CACHE_DIR=/tmp/bun-cache
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue