<commit_before>FROM node:0.12.7

MAINTAINER Hbomb <<EMAIL>>

RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
ADD ./sources.list /etc/apt/sources.list

RUN apt-get update \
    && apt-get install -y ruby ruby-dev redis-server \
    && gem sources --remove https://ruby.taobao.org/ \
    && gem sources --remove https://rubygems.org/ \
    && gem sources -a https://ruby.taobao.org/ \
    && gem install compass -V

RUN mkdir /Code
WORKDIR /Code



RUN npm install -g  -d cnpm --registry=https://registry.npm.taobao.org \
    && cnpm install -g -d gulp \
    && cnpm install -g -d spm@3.4.3 \
    && spm config set registry http://spm.yoho.cn

ADD ./yo /Code/yo
ADD ./yo.yohobuy-mobile /Code/yo.yohobuy-mobile
ADD ./yo.demo /Code/yo.demo
ADD ./Makefile /Code

RUN make

EXPOSE 3000<commit_msg>修改部分 Dockerfile的步骤<commit_after>FROM node:0.12.7

MAINTAINER Hbomb <<EMAIL>>

RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
ADD ./sources.list /etc/apt/sources.list

RUN apt-get update \
    && apt-get install -y ruby ruby-dev redis-server \
    && gem sources --remove https://ruby.taobao.org/ \
    && gem sources --remove https://rubygems.org/ \
    && gem sources -a https://ruby.taobao.org/ \
    && gem install compass -V

RUN mkdir /Code
WORKDIR /Code



RUN npm install -g  -d cnpm --registry=https://registry.npm.taobao.org 
RUN cnpm install -g -d gulp 
RUN cnpm install -g -d spm@3.4.3 
RUN spm config set registry http://spm.yoho.cn

ADD ./yo /Code/yo
ADD ./yo.yohobuy-mobile /Code/yo.yohobuy-mobile
ADD ./yo.demo /Code/yo.demo
ADD ./Makefile /Code/Makefile

RUN make

EXPOSE 3000
{'fraction_non_alphanumeric': 0.15018773466833543, 'fraction_numerical': 0.01376720901126408, 'mean_word_length': 2.5533333333333332, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1810381', 'n_tokens_mistral': 646, 'n_tokens_neox': 607, 'n_words': 163}