<commit_before>FROM scrapinghub/base:12.04
RUN apt-get update -qq &&\
    apt-get install -qy python-software-properties nginx

# nodejs
RUN apt-add-repository ppa:chris-lea/node.js &&\
    apt-get update -qq &&\
    apt-get install -qy nodejs
RUN npm install bower ember-cli -g

# Install python stuff.
ADD requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
ADD . /app
RUN ln -sf /app/nginx/nginx.conf /etc/nginx/nginx.conf
RUN pip install -e /app/slybot

# Concatenate, optimize & obfuscate javascript.
WORKDIR /app/slyd
RUN npm install
RUN bower install --allow-root
RUN ember build -e production

EXPOSE 9001
# TODO(dangra): fix handling of nginx service, it won't be restarted in case if crashed.
CMD service nginx start; twistd --pidfile=/tmp/twistd.pid -n slyd -p 9002<commit_msg>Add missing dependency to Dockerfile<commit_after>FROM scrapinghub/base:12.04
RUN apt-get update -qq &&\
    apt-get install -qy python-software-properties nginx git

# nodejs
RUN apt-add-repository ppa:chris-lea/node.js &&\
    apt-get update -qq &&\
    apt-get install -qy nodejs
RUN npm install bower ember-cli -g

# Install python stuff.
ADD requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
ADD . /app
RUN ln -sf /app/nginx/nginx.conf /etc/nginx/nginx.conf
RUN pip install -e /app/slybot

# Concatenate, optimize & obfuscate javascript.
WORKDIR /app/slyd
RUN npm install
RUN bower install --allow-root
RUN ember build -e production

EXPOSE 9001
# TODO(dangra): fix handling of nginx service, it won't be restarted in case if crashed.
CMD service nginx start; twistd --pidfile=/tmp/twistd.pid -n slyd -p 9002
{'fraction_non_alphanumeric': 0.09981740718198417, 'fraction_numerical': 0.014607425441265977, 'mean_word_length': 3.566666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2421145', 'n_tokens_mistral': 608, 'n_tokens_neox': 564, 'n_words': 194}