From cf5f1643035cee9767691e1091cf5a310a715794 Mon Sep 17 00:00:00 2001 From: mol Date: Fri, 23 Feb 2024 16:14:09 +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 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index deb8382..b8d4488 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,13 +40,17 @@ RUN echo "安装 node 环境" && \ export http_proxy=${PROXY} && \ export https_proxy=${PROXY} && \ # 安装 brew - curl -ofsSL install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash && \ - (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc && \ - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \ + # curl -ofsSL install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash && \ + # (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc && \ + # eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \ apt-get update && \ - apt-get install -y build-essential && \ + apt-get install nodejs npm && \ + node -V && \ + npm -V && \ + npm install -g n && \ + # apt-get install -y build-essential && \ # 安装 n node 管理器 - brew install n && \ + # brew install n && \ # 安装最新版本 node n 18.15.0 # 安装 web 服务器