fixup! chore!: deprecate homebrew, remove ruby install

This commit is contained in:
Dean Sheather 2023-02-15 11:01:07 +00:00
parent 214fa19aed
commit 1248ff8cff
2 changed files with 4 additions and 9 deletions

View File

@ -56,7 +56,7 @@ RUN HOMEBREW_INSTALL_FROM_API=1 /bin/bash -c "$(curl -fsSL https://raw.githubuse
USER ROOT
# install our deprecation message wrapper for homebrew
COPY --chown=root:root --chmod=755 homebrew-wrapper.sh /usr/local/bin/brew
COPY homebrew-wrapper.sh /usr/local/bin/brew
# remove the bundled ruby from homebrew to save space, homebrew reinstalls
# anyways
RUN rm -rf /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby

View File

@ -61,12 +61,7 @@ USER coder
# install Homebrew, must be as a non-root user
RUN HOMEBREW_INSTALL_FROM_API=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
USER ROOT
# install our deprecation message wrapper for homebrew
COPY --chown=root:root --chmod=755 homebrew-wrapper.sh /usr/local/bin/brew
# remove the bundled ruby from homebrew to save space, homebrew reinstalls
# anyways
RUN rm -rf /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby
USER CODER
COPY homebrew-wrapper.sh /usr/local/bin/brew
RUN sudo chown root:root /usr/local/bin/brew && \
sudo chmod 755 /usr/local/bin/brew