11FROM node
2+
23LABEL maintainer= " Coderaiser"
34LABEL org.opencontainers.image.source= " https://github.com/coderaiser/cloudcmd"
45
56RUN mkdir - p / usr/ src/ cloudcmd
7+
68WORKDIR / usr/ src/ cloudcmd
79
810COPY package.json / usr/ src/ cloudcmd/
@@ -12,12 +14,14 @@ ENV PATH=/usr/local/src/cargo/bin:$PATH
1214
1315ARG GO_VERSION = 1.21.2
1416
15- RUN apt- get update && apt- get upgrade - y && apt- get autoremove && \
16- apt- get install - y less ffmpeg net- tools netcat- openbsd mc iputils- ping vim neovim bat fzf \
17- locales sudo command- not- found && \
17+ RUN apt- get update && \
18+ apt- get upgrade - y && \
19+ apt- get autoremove && \
20+ apt- get install - y less ffmpeg net- tools netcat- openbsd mc iputils- ping vim neovim bat fzf locales sudo command- not- found && \
1821 echo " > Update command-not-found database. Run 'sudo apt update' to populate it." && \
1922 apt- get update && \
20- apt- get autoremove && apt- get clean && \
23+ apt- get autoremove && \
24+ apt- get clean && \
2125 rm - rf / var/ lib/ apt/ lists/* && \
2226 echo "> install nix" && \
2327 useradd -m -s /bin/bash nixuser && \
@@ -31,8 +35,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get autoremove && \
3135 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \
3236 mv ~/.nvm /usr/local/src/nvm && \
3337 echo "> install npm globals" && \
34- npm i wisdom nupdate version-io redrun superc8 \
35- supertape madrun redlint putout renamify-cli runny redfork -g && \
38+ npm i wisdom nupdate version-io redrun superc8 supertape madrun redlint putout renamify-cli runny redfork -g && \
3639 echo "> install bun" && \
3740 curl -fsSL https://bun.sh/install | bash && \
3841 mv ~/.bun /usr/local/src/bun && \
@@ -64,7 +67,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get autoremove && \
6467 echo "alias buni='bun i --no-save'" >> /etc/bash.bashrc && \
6568 echo "alias bat='batcat'" >> /etc/bash.bashrc && \
6669 echo ". /usr/local/src/nvm/nvm.sh" >> /etc/bash.bashrc && \
67- echo 'PS1="\[\ 033[01;32m\]\u@\h\[\ 033[00m\]:\[\ 033[01;34m\]\w\[\ 033[00m\ ]\$ "' >> /etc/bash.bashrc && \
70+ echo 'PS1="[ 033[01;32m]u@h[ 033[00m]:[ 033[01;34m]w[ 033[00m]\$ "' >> /etc/bash.bashrc && \
6871 echo "> setup inputrc" && \
6972 echo "set editing-mode vi" >> /etc/inputrc && \
7073 echo "TAB: menu-complete" >> /etc/inputrc && \
@@ -85,18 +88,16 @@ WORKDIR /
8588ENV cloudcmd_terminal=true
8689ENV cloudcmd_terminal_path=gritty
8790ENV cloudcmd_open=false
88-
8991ENV PATH=node_modules/.bin:$PATH
92+
9093ENV PATH=/usr/local/src/nix/profile/bin:$PATH
9194ENV NIX_PATH=/usr/local/src/nix/defexpr/channels
9295
9396ENV BUN_INSTALL_CACHE_DIR=/tmp/bun-cache
9497ENV DENO_DIR=/tmp/deno-cache
95-
9698ENV LANG=en_US.UTF-8
9799ENV LANGUAGE=en_US:en
98100ENV LC_ALL=en_US.UTF-8
99-
100101ENV TERM=xterm-256color
101102
102103EXPOSE 8000
0 commit comments