更新 Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
mol
2024-02-23 16:14:09 +00:00
parent 716268ab1b
commit cf5f164303

View File

@ -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 服务器