mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature: docker: io: PS1
This commit is contained in:
parent
682729ac3e
commit
618a561514
1 changed files with 8 additions and 6 deletions
|
|
@ -11,22 +11,25 @@ RUN apt-get update && apt-get upgrade && apt-get autoremove && \
|
|||
apt-get install -y netcat-openbsd mc iputils-ping vim neovim sudo && \
|
||||
npm i wisdom nupdate version-io redrun superc8 \
|
||||
supertape madrun redlint putout renamify-cli runny redfork -g && \
|
||||
echo "install bun" && \
|
||||
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" && \
|
||||
echo "> install deno" && \
|
||||
curl -fsSL https://deno.land/install.sh | sh && \
|
||||
mv ~/.bun /usr/local/src/deno && \
|
||||
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 && \
|
||||
bun r gritty --omit dev && \
|
||||
bun i gritty --omit dev && \
|
||||
bun pm cache rm && \
|
||||
echo "> allow sudo apt-get install for everybody" && \
|
||||
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/apt-get *" > /etc/sudoers.d/apt-install && \
|
||||
echo "alias ls='ls --color=auto'" >> /etc/bash.bashrc && \
|
||||
chmod 0440 /etc/sudoers.d/apt-install && \
|
||||
echo "> configure bash" && \
|
||||
echo "alias ls='ls --color=auto'" >> /etc/bash.bashrc && \
|
||||
echo "PS1='\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/bash.bashrc && \
|
||||
echo "set editing-mode vi" >> /etc/inputrc && \
|
||||
echo "TAB: menu-complete" >> /etc/inputrc
|
||||
|
||||
|
|
@ -38,8 +41,7 @@ ENV cloudcmd_terminal=true
|
|||
ENV cloudcmd_terminal_path=gritty
|
||||
ENV cloudcmd_open=false
|
||||
ENV PATH=node_modules/.bin:$PATH
|
||||
ENV PS1='\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
|
||||
EXPOSE 8000
|
||||
EXPOSE 1337
|
||||
|
||||
ENTRYPOINT ["/usr/src/cloudcmd/bin/cloudcmd.js"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue