FROM registry.docker-cn.com/library/ubuntu

#安装curl
RUN apt-get update
RUN apt-get install --yes curl

#安装docker
RUN curl -fsSL get.docker.com -o get-docker.sh
RUN sh get-docker.sh
#安装docker-compose
RUN apt-get update
RUN apt-get install --yes docker-compose

#安装git
RUN apt-get install --yes git

#安装vim
RUN apt-get install --yes vim

#安装nodejs
RUN curl --silent --location https://deb.nodesource.com/setup_9.x | bash -
RUN apt-get install --yes nodejs
RUN apt-get install --yes build-essential

apt-get install libssl-dev

WORKDIR /
# 安装node依赖包
RUN npm i -g npm
RUN npm i -g pm2
RUN npm i -g fis3
RUN npm i -g mocha
RUN npm i -g chai
RUN npm i -g mochawesome
RUN npm i -g fis-parser-babel-5.x
RUN npm i -g fis-parser-less-2.x
RUN npm i -g fis-optimizer-html-compress
RUN npm i -g fis3-ug
RUN npm i atweb@0.6.5
RUN npm i nodegit