This commit is contained in:
19
Dockerfile
19
Dockerfile
@ -41,13 +41,18 @@ RUN echo "安装基础工具与配置文件" && \
|
||||
# apt-get install -y npm && \
|
||||
# 安装 brew 管理器
|
||||
# git clone https://mirrors.aliyun.com/homebrew/install.git brew-install && \
|
||||
/bin/bash /root/install.sh && \
|
||||
rm -rf /root/install.sh && \
|
||||
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 && \
|
||||
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git" && \
|
||||
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" && \
|
||||
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles" && \
|
||||
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api" && \
|
||||
/bin/bash -c "$(curl -fsSL https://mirrors.ustc.edu.cn/misc/brew-install.sh)" && \
|
||||
# /bin/bash /root/install.sh && \
|
||||
# rm -rf /root/install.sh && \
|
||||
#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 && \
|
||||
|
Reference in New Issue
Block a user