FROM index.alauda.cn/library/jenkins
USER root
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get update && apt-get install -y nodejs
RUN npm install gulp -g --registry=https://registry.npm.taobao.org
RUN apt-get install -y ruby ruby-dev ruby-ffi && rm -rf /var/lib/apt/lists/*
RUN gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
RUN gem update --system
RUN gem install compass
RUN npm install rsd -g --registry=https://registry.npm.taobao.org
USER jenkins