Fix bugs
This commit is contained in:
parent
9dbff77dd1
commit
b7a5c42b9b
|
@ -1,8 +1,8 @@
|
||||||
FROM debian:11 AS debian-user
|
FROM debian:11 AS debian-user
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt update && \
|
apt update -y && \
|
||||||
apt install sudo curl && \
|
apt install sudo curl -y && \
|
||||||
useradd -m tester && \
|
useradd -m tester && \
|
||||||
echo tester:tester | chpasswd && \
|
echo tester:tester | chpasswd && \
|
||||||
usermod -aG sudo tester
|
usermod -aG sudo tester
|
||||||
|
|
|
@ -169,6 +169,12 @@ run() {
|
||||||
packages+=(npm)
|
packages+=(npm)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $should_install_rust -eq 1 ]; then
|
||||||
|
packages+=(build-essential)
|
||||||
|
packages+=(pkg-config)
|
||||||
|
packages+=(libssl-dev)
|
||||||
|
fi
|
||||||
|
|
||||||
sudo apt install -y ${packages[@]}
|
sudo apt install -y ${packages[@]}
|
||||||
|
|
||||||
if [ $should_install_dotfiles -eq 1 ]; then
|
if [ $should_install_dotfiles -eq 1 ]; then
|
||||||
|
@ -199,6 +205,7 @@ run() {
|
||||||
npm config set prefix $HOME/.npmbin
|
npm config set prefix $HOME/.npmbin
|
||||||
npm install -g npm
|
npm install -g npm
|
||||||
sudo apt purge npm -y
|
sudo apt purge npm -y
|
||||||
|
sudo apt autoremove -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $should_install_neovim -eq 1 ]; then
|
if [ $should_install_neovim -eq 1 ]; then
|
||||||
|
|
Loading…
Reference in New Issue