FROM centos

# 安装必要打包库
RUN yum install -y make gcc*
RUN yum install -y git

# 安装node
RUN curl -sL https://rpm.nodesource.com/setup_8.x | bash -
RUN yum install -y nodejs
RUN yum install -y git

# 切换npm淘宝源
RUN npm config set registry https://registry.npm.taobao.org 

# 安装日志组件
RUN npm i frontail -g --registry=https://registry.npm.taobao.org

# 安装gulp
RUN npm install gulp

# 安装控制台组件
WORKDIR /home
RUN git clone https://git.coding.net/tywldx/demoXterm.git
WORKDIR /home/demoXterm
RUN npm install
RUN npm run build

RUN alias "la=ls -al"