Skip to content

Commit 6c3d0e5

Browse files
committed
[+] Add homebrew to each container
1 parent f6d98c4 commit 6c3d0e5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,17 @@ Run apt-get install git -y
2727
# Install Build Essential
2828
Run apt-get install build-essential -y
2929

30+
# Install curl
31+
Run apt-get install curl -y
32+
33+
# Add new user & Setup homebrew
34+
RUN useradd -m -s /bin/bash linuxbrew && \
35+
echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
36+
37+
USER linuxbrew
38+
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
39+
40+
USER root
41+
ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
42+
3043
CMD ["bash"]

0 commit comments

Comments
 (0)