Skip to content

Commit 20c8ffd

Browse files
committed
feature: docker: io: add PREFIX
1 parent bec3f5a commit 20c8ffd

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

docker/Dockerfile.io

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,36 @@ COPY package.json /usr/src/cloudcmd/
1111

1212
ENV DEBIAN_FRONTEND=noninteractive \
1313
NVM_DIR=/usr/local/src/nvm \
14-
npm_config_cache=/tmp/npm-cache
14+
PREFIX=/usr/local \
15+
npm_config_cache=/tmp/npm-cache \
16+
PATH=/usr/local/src/bun/bin:$PATH \
17+
BUN_INSTALL=/usr/local/src/bun
1518

1619
ARG GO_VERSION=1.21.2
1720
ARG NVIM_VERSION=0.12.0
1821
ARG UBUNTU_DEPS="libatomic1 curl wget git net-tools iproute2"
22+
ARG RUST_DEPS="build-essential"
23+
ARG DEPES="less ffmpeg net-tools netcat-openbsd mc iputils-ping vim bat fzf locales sudo command-not-found ncdu aptitude htop btop hexyl"
1924

2025
RUN apt-get update && \
2126
apt-get upgrade -y && \
2227
apt-get autoremove && \
23-
apt-get install -y ${UBUNTU_DEPS} less ffmpeg net-tools netcat-openbsd mc iputils-ping vim bat fzf locales sudo command-not-found ncdu aptitude htop btop hexyl && \
28+
apt-get install -y ${UBUNTU_DEPS} ${RUST_DEPES} ${DEPES} && \
2429
echo "> Update command-not-found database. Run 'sudo apt update' to populate it." && \
2530
apt-get update && \
2631
apt-get autoremove && \
2732
apt-get clean && \
28-
echo "> install nvm" && \
29-
mkdir $NVM_DIR && \
30-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \
31-
. ${NVM_DIR}/nvm.sh && \
33+
echo "> install bun" && \
34+
curl https://bun.sh/install | bash && \
35+
echo "> install npm globals" && \
36+
bun i palabra wisdom nupdate version-io redrun superc8 supertape madrun redlint putout renamify-cli runny redfork -g && \
37+
echo "> install rust go deno bun fasm nvim" && \
38+
bun ${BUN_INSTALL}/bin/palabra i nvm rust go deno fasm nvim -d /usr/local/src && \
39+
echo "> install node" && \
40+
mkdir ${NPM_DIR} && \
41+
. $NVM_DIR/nvm.sh && \
3242
nvm i node && \
3343
ln -fs /${NVM_DIR}/versions/node/$(node -v)/bin/node /usr/local/bin/node && \
34-
echo "> install palabra" && \
35-
npm i palabra -g && \
36-
echo "> install rust go deno bun fasm nvim" && \
37-
palabra i rust go deno bun fasm nvim -d /usr/local/src && \
38-
echo "> install npm globals" && \
39-
bun i wisdom nupdate version-io redrun superc8 supertape madrun redlint putout renamify-cli runny redfork -g && \
4044
echo "> install gritty" && \
4145
bun r gritty --omit dev && \
4246
bun i gritty --omit dev && \
@@ -72,6 +76,7 @@ ENV cloudcmd_terminal=true \
7276
cloudcmd_open=false \
7377
PATH=node_modules/.bin:$PATH \
7478
PATH=~/.local/bin:$PATH \
79+
PATH=/usr/local/src/bun/bin:$PATH \
7580
BUN_INSTALL_CACHE_DIR=/tmp/bun-cache \
7681
DENO_DIR=/tmp/deno-cache \
7782
LANG=en_US.UTF-8 \

0 commit comments

Comments
 (0)