From 6c3d0e5f75e8e069b333bb6b0b5f613a54e1733c Mon Sep 17 00:00:00 2001 From: g31s Date: Sat, 27 Feb 2021 06:09:21 +0000 Subject: [PATCH] [+] Add homebrew to each container --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3217491..e383688 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,17 @@ Run apt-get install git -y # Install Build Essential Run apt-get install build-essential -y +# Install curl +Run apt-get install curl -y + +# Add new user & Setup homebrew +RUN useradd -m -s /bin/bash linuxbrew && \ + echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers + +USER linuxbrew +RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" + +USER root +ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}" + CMD ["bash"] \ No newline at end of file