FROM centos
MAINTAINER kalvin "dekun.dai@quantgroup.cn"

# 安装工具
RUN yum install -y make gcc* \
    && yum install -y git \
    && yum install -y vim \
    && yum install -y wget

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

# 切换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 export LANG="en_US.UTF-8"

RUN alias "la=ls -al"