diff --git a/Dockerfile b/Dockerfile index 0ce21c9..90034f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,19 +39,14 @@ RUN echo "安装基础工具与配置文件" && \ echo "安装 node 环境" && \ # apt-get install -y npm && \ # 安装 brew 管理器 - export HOMEBREW_INSTALL_FROM_API=1 && \ - export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api" && \ - export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles" && \ - export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git" && \ - export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git" && \ - git clone --depth=1 https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/install.git brew-install && \ + git clone https://mirrors.aliyun.com/homebrew/install.git brew-install && \ /bin/bash brew-install/install.sh && \ rm -rf brew-install && \ - test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)" && \ - test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \ - test -r ~/.bash_profile && echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bash_profile && \ - test -r ~/.profile && echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.profile && \ - test -r ~/.zprofile && echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.zprofile && \ + echo 'export HOMEBREW_API_DOMAIN="https://mirrors.aliyun.com/homebrew-bottles/api"' >> ~/.bash_profile && \ + echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/brew.git"' >> ~/.bash_profile && \ + echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/homebrew-core.git"' >> ~/.bash_profile && \ + echo 'export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.aliyun.com/homebrew/homebrew-bottles"' >> ~/.bash_profile && \ + source ~/.bash_profile && \ brew update && \ # 安装 n node 管理器 brew install n && \