@@ -11,32 +11,36 @@ COPY package.json /usr/src/cloudcmd/
1111
1212ENV 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
1619ARG GO_VERSION = 1.21.2
1720ARG NVIM_VERSION = 0.12.0
1821ARG UBUNTU_DEPS = " libatomic1 curl wget git net-tools iproute2"
22+ ARG RUST_DEPS = " build-essential"
23+ ARG HASKELL_DEPS = " libffi-dev libgmp-dev libncurses-dev pkg-config"
24+ ARG DEPS = " less ffmpeg net-tools netcat-openbsd mc iputils-ping vim bat fzf locales sudo command-not-found ncdu aptitude htop btop hexyl"
1925
2026RUN apt- get update && \
2127 apt- get upgrade - y && \
2228 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 && \
29+ apt- get install - y ${UBUNTU_DEPS } ${ RUST_DEPES } ${ HASKELL_DEPS } ${ DEPS } && \
2430 echo " > Update command-not-found database. Run 'sudo apt update' to populate it." && \
2531 apt- get update && \
2632 apt- get autoremove && \
2733 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 && \
34+ echo " > install bun" && \
35+ curl https:// bun.sh/install | bash && \
36+ echo " > install npm globals" && \
37+ bun i palabra wisdom nupdate version- io redrun superc8 supertape madrun redlint putout renamify- cli runny redfork - g && \
38+ echo " > install rust go deno bun fasm nvim" && \
39+ bun ${BUN_INSTALL }/ bin/ palabra i nvm rust go deno fasm nvim haskell - d / usr/ local/ src && \
40+ echo " > install node" && \
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