This commit is contained in:
14
Dockerfile
14
Dockerfile
@ -40,13 +40,17 @@ RUN echo "安装 node 环境" && \
|
|||||||
export http_proxy=${PROXY} && \
|
export http_proxy=${PROXY} && \
|
||||||
export https_proxy=${PROXY} && \
|
export https_proxy=${PROXY} && \
|
||||||
# 安装 brew
|
# 安装 brew
|
||||||
curl -ofsSL install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash && \
|
# 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 && \
|
# (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc && \
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
|
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
|
||||||
apt-get update && \
|
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 管理器
|
# 安装 n node 管理器
|
||||||
brew install n && \
|
# brew install n && \
|
||||||
# 安装最新版本 node
|
# 安装最新版本 node
|
||||||
n 18.15.0
|
n 18.15.0
|
||||||
# 安装 web 服务器
|
# 安装 web 服务器
|
||||||
|
Reference in New Issue
Block a user