From b7a5c42b9b8dee02ad010323ddd13caf11109509 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Sat, 9 Nov 2024 22:13:24 +0100 Subject: [PATCH] Fix bugs --- Dockerfile | 4 ++-- tforgione.sh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 49b5799..d0ffdd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM debian:11 AS debian-user RUN \ - apt update && \ - apt install sudo curl && \ + apt update -y && \ + apt install sudo curl -y && \ useradd -m tester && \ echo tester:tester | chpasswd && \ usermod -aG sudo tester diff --git a/tforgione.sh b/tforgione.sh index dd0bd08..0d9d5c3 100755 --- a/tforgione.sh +++ b/tforgione.sh @@ -169,6 +169,12 @@ run() { packages+=(npm) fi + if [ $should_install_rust -eq 1 ]; then + packages+=(build-essential) + packages+=(pkg-config) + packages+=(libssl-dev) + fi + sudo apt install -y ${packages[@]} if [ $should_install_dotfiles -eq 1 ]; then @@ -199,6 +205,7 @@ run() { npm config set prefix $HOME/.npmbin npm install -g npm sudo apt purge npm -y + sudo apt autoremove -y fi if [ $should_install_neovim -eq 1 ]; then