<commit_before>FROM ubuntu:14.04.2
MAINTAINER <NAME>

# Make the machine up to date and install some dependencies
RUN apt-get install -y software-properties-common python
RUN add-apt-repository ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update && apt-get upgrade -y && apt-get install build-essential make gcc nodejs -y

# Set the application
ADD package.json /opt/consuela/package.json
ADD server.js /opt/consuela/server.js

# Set the exposed stuff
VOLUME /opt/consuela/config
EXPOSE 8543

# Run NPM love
RUN cd /opt/consuela && npm install

# Start it!
WORKDIR /opt/consuela<commit_msg>Make a smaller docker image<commit_after>FROM ubuntu:14.04.2
MAINTAINER <NAME>

# In order to reduce the image size, we need to do all of this in one command
RUN apt-get update && \
  apt-get install -y software-properties-common && \
  add-apt-repository ppa:chris-lea/node.js && \
  apt-get remove -y software-properties-common && \
  apt-get autoremove -y && \
  apt-get clean
# get node.js
RUN apt-get update && apt-get install -y nodejs && apt-get clean

# Set the application
ADD package.json /opt/consuela/package.json
ADD server.js /opt/consuela/server.js

# Set the exposed stuff
VOLUME /opt/consuela/config
EXPOSE 8543

# Run NPM love
RUN cd /opt/consuela && npm install

# Start it!
WORKDIR /opt/consuela
{'fraction_non_alphanumeric': 0.10518731988472622, 'fraction_numerical': 0.012968299711815562, 'mean_word_length': 3.74061433447099, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6829148', 'n_tokens_mistral': 491, 'n_tokens_neox': 464, 'n_words': 154}