<commit_before># can use node version tag like :onbuild, :latest, but which is not stable version may cause update error
# detail on https://hub.docker.com/_/node/
FROM node:6

MAINTAINER Disciple.Ding <<EMAIL>>

# Create app directory
RUN mkdir -p /usr/app
WORKDIR /usr/app

# We add package.json first so that the  docker image build
# can use the cache as long as contents of package.json
# hasn't changed.

COPY package.json /usr/app/
RUN npm install

# Bundle app source
COPY . /usr/app

RUN npm run build

EXPOSE 8080

VOLUME /usr/app/log

CMD [ "npm", "run", "start:server" ]<commit_msg>Separate node-sass installation  from npm install for docker build.<commit_after># can use node version tag like :onbuild, :latest, but which is not stable version may cause update error
# detail on https://hub.docker.com/_/node/
FROM node:6

MAINTAINER Disciple.Ding <<EMAIL>>

# Create app directory
RUN mkdir -p /usr/app
WORKDIR /usr/app


# node-sass install error in docker environment
# Install node-sass in single process.
RUN npm install node-sass

# We add package.json first so that the  docker image build
# can use the cache as long as contents of package.json
# hasn't changed.
COPY package.json /usr/app/
RUN npm install

# Bundle app source
COPY . /usr/app

RUN npm run build

EXPOSE 8080

VOLUME /usr/app/log

CMD [ "npm", "run", "start:server" ]
{'fraction_non_alphanumeric': 0.09144542772861357, 'fraction_numerical': 0.007374631268436578, 'mean_word_length': 3.778169014084507, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3243751', 'n_tokens_mistral': 460, 'n_tokens_neox': 427, 'n_words': 185}