From 4d5bec5ecaadac243cacfda69f1ec2f4510c60f4 Mon Sep 17 00:00:00 2001 From: mol Date: Sat, 24 Feb 2024 15:40:56 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb51513..e878faf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ WORKDIR /home/coder VOLUME [ "/home/coder/project", "/home/coder/.ssh", "/home/coder/.local", "/home/coder/.config" ] COPY entrypoint.sh /usr/bin/ +COPY install.sh /home/coder/ ENV ENTRYPOINTD=/entrypoint.d @@ -39,9 +40,9 @@ RUN echo "安装基础工具与配置文件" && \ echo "安装 node 环境" && \ # apt-get install -y npm && \ # 安装 brew 管理器 - git clone --depth=1 https://mirrors.aliyun.com/homebrew/install.git brew-install && \ - /bin/bash brew-install/install.sh && \ - rm -rf brew-install && \ + # git clone https://mirrors.aliyun.com/homebrew/install.git brew-install && \ + /bin/bash ~/install.sh && \ + rm -rf ~/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 && \