fixup! chore!: deprecate homebrew, remove ruby install
This commit is contained in:
parent
214fa19aed
commit
1248ff8cff
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue