From e8ddb9316a27a596e6ff953a3901745a2019fa9f Mon Sep 17 00:00:00 2001 From: mol Date: Sat, 24 Feb 2024 16:18:21 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index c0d1c0c..f26e7a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,14 @@ RUN echo "安装基础工具与配置文件" && \ 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)" && \ + (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc && \ + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \ + echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /root/.bashrc && \ + echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"' >> /root/.bashrc && \ + echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"' >> /root/.bashrc && \ + 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" && \ + apt-get install -y build-essential && \ # /bin/bash /root/install.sh && \ # rm -rf /root/install.sh && \ #echo 'export HOMEBREW_API_DOMAIN="https://mirrors.aliyun.com/homebrew-bottles/api"' >> ~/.bash_profile && \