<commit_before># Dillinger Docker File
#
# Installs dillinger on a container
#
# VERSION  0.0.0
from       ubuntu
maintainer <NAME> "<EMAIL>"

#
# update apr
#
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list

run apt-get upgrade
run apt-get update

#
# base dependencies
#
run apt-get install -y build-essential chrpath git-core libssl-dev libfontconfig1-dev

#
# install node
#
run cd /usr/local && curl http://nodejs.org/dist/v0.10.15/node-v0.10.15-linux-x64.tar.gz | tar --strip-components=1 -zxf- && cd
run npm -g update npm
run npm install -g forever

#
# install phantomjs
#
run mkdir -p /opt/install/phantomjs
run cd /opt/install && git clone git://github.com/ariya/phantomjs.git
run cd phantomjs && git checkout 1.9 && ./build.sh

#
# install the app
#
run mkdir -p /opt/install/dillinger
add . /opt/install/dillinger
run cd /opt/install/dillinger && npm install

#
# port 8080 exposed by default, can be overriden with -p machine:container
#
expose 8080<commit_msg>Dockerfile: Adds curl to dependencies<commit_after># Dillinger Docker File
#
# Installs dillinger on a container
#
# VERSION  0.0.0
from       ubuntu
maintainer <NAME> "<EMAIL>"

#
# update apr
#
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list

run apt-get upgrade
run apt-get update

#
# base dependencies
#
run apt-get install -y build-essential chrpath git-core libssl-dev libfontconfig1-dev curl

#
# install node
#
run cd /usr/local && curl http://nodejs.org/dist/v0.10.15/node-v0.10.15-linux-x64.tar.gz | tar --strip-components=1 -zxf- && cd
run npm -g update npm
run npm install -g forever

#
# install phantomjs
#
run mkdir -p /opt/install/phantomjs
run cd /opt/install && git clone git://github.com/ariya/phantomjs.git
run cd phantomjs && git checkout 1.9 && ./build.sh

#
# install the app
#
run mkdir -p /opt/install/dillinger
add . /opt/install/dillinger
run cd /opt/install/dillinger && npm install

#
# port 8080 exposed by default, can be overriden with -p machine:container
#
expose 8080
{'fraction_non_alphanumeric': 0.12131464475592073, 'fraction_numerical': 0.02609956500724988, 'mean_word_length': 3.539473684210526, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5843860', 'n_tokens_mistral': 788, 'n_tokens_neox': 725, 'n_words': 224}