Skip to content

Commit

Permalink
chore: prevent installing homebrew-core when installing homebrew
Browse files Browse the repository at this point in the history
- There are some default libraries that contain test code that triggers
  our security scanners. Having homebrew installed should be sufficient
  for users. This will eventually be the default for all brew users anyway.
  See Homebrew/brew#13794 (comment)
  • Loading branch information
sreya committed Feb 14, 2023
1 parent df40363 commit a38f8fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/base/Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ RUN useradd coder \
USER coder

# install Homebrew, must be as a non-root user
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
RUN HOMEBREW_INSTALL_FROM_API=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
ENV PATH /home/linuxbrew/.linuxbrew/bin:${PATH}
2 changes: 1 addition & 1 deletion images/base/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ RUN useradd coder \
USER coder

# install Homebrew, must be as a non-root user
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
RUN HOMEBREW_INSTALL_FROM_API=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
ENV PATH /home/linuxbrew/.linuxbrew/bin:${PATH}

0 comments on commit a38f8fa

Please sign in to comment.