<commit_before># nodeJS official image
# built on debian 8 "jessie" (current stable release)
# see https://hub.docker.com/_/node/
# see also https://github.com/nodejs/docker-node/blob/master/6.4/Dockerfile
FROM node:8

# Maintained by <NAME>
MAINTAINER jlchereau

# Set environment to production (and avoid installing devDependencies)
ENV NODE_ENV production

# Install prerequisites (especially to build mongoose)
# RUN apt-get update && apt-get install -y build-essential python
RUN apt-get update

# Copy our application
RUN mkdir -p /usr/src/
COPY . /usr/src/
WORKDIR /usr/src/

# Upgrade npm - does not work: https://github.com/npm/npm/issues/15558
# RUN npm install -g npm

# Add forever
# see https://github.com/foreverjs/forever
RUN npm install -g forever

# Install application modules
RUN npm install
<commit_msg>Upgraded npm using yarn<commit_after># nodeJS official image
# built on debian 8 "jessie" (current stable release)
# see https://hub.docker.com/_/node/
# see also https://github.com/nodejs/docker-node/blob/master/6.4/Dockerfile
FROM node:8

# Maintained by <NAME>
MAINTAINER jlchereau

# Set environment to production (and avoid installing devDependencies)
ENV NODE_ENV production

# Best practice documented at https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#global-npm-dependencies
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global

# Install prerequisites (especially to build mongoose)
# RUN apt-get update && apt-get install -y build-essential python
RUN apt-get update

# Copy our application
RUN mkdir -p /usr/src/
COPY . /usr/src/
WORKDIR /usr/src/

# Upgrade npm
# RUN npm install -g npm  - does not work: https://github.com/npm/npm/issues/15558
RUN yarn global add npm

# Add forever
# see https://github.com/foreverjs/forever
RUN npm install -g forever

# Install application modules
RUN npm install

{'fraction_non_alphanumeric': 0.1025364274150027, 'fraction_numerical': 0.009713977334052886, 'mean_word_length': 4.164345403899722, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 9, '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': '3648165', 'n_tokens_mistral': 635, 'n_tokens_neox': 579, 'n_words': 193}