Skip to content

Commit

Permalink
[+] Add homebrew to each container
Browse files Browse the repository at this point in the history
  • Loading branch information
g31s committed Feb 27, 2021
1 parent f6d98c4 commit 6c3d0e5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 6c3d0e5

Please sign in to comment.