<commit_before>FROM node:5.3

MAINTAINER <EMAIL>

#use mirrors for faster apt downloads no matter where the machine that builds the image is
RUN echo "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse" > /etc/apt/sources.list; \
    echo "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse" >> /etc/apt/sources.list; \
    echo "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list; \
    echo "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse" >> /etc/apt/sources.list

ENV appDir /usr/src/app

# Prepare app directory
RUN mkdir -p /usr/src/app
WORKDIR ${appDir}

# Install dependencies
ADD package.json /usr/src/app
RUN npm install --production

# Install process manager globally
RUN npm install pm2 -g

# Add app files
ADD . /usr/src/app

# Build the app in production mode
RUN npm run build -- --release

# Expose the app port
EXPOSE 3000

# Start the app
CMD ["pm2", "start", "processes.json", "--no-daemon"]<commit_msg>removing --production arg to install build dependencies<commit_after>FROM node:5.3

MAINTAINER <EMAIL>

#use mirrors for faster apt downloads no matter where the machine that builds the image is
RUN echo "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse" > /etc/apt/sources.list; \
    echo "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse" >> /etc/apt/sources.list; \
    echo "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list; \
    echo "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse" >> /etc/apt/sources.list

ENV appDir /usr/src/app

# Prepare app directory
RUN mkdir -p /usr/src/app
WORKDIR ${appDir}

# Install dependencies
ADD . /usr/src/app
RUN npm install

# Install process manager globally
RUN npm install pm2 -g

# Build the app in production mode
RUN npm run build -- --release

# Expose the app port
EXPOSE 3000

# Start the app
CMD ["pm2", "start", "processes.json", "--no-daemon"]
{'fraction_non_alphanumeric': 0.10986547085201794, 'fraction_numerical': 0.007174887892376682, 'mean_word_length': 3.9799107142857144, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1134755', 'n_tokens_mistral': 718, 'n_tokens_neox': 671, 'n_words': 232}