<commit_before>FROM kkarczmarczyk/node-yarn:6.9
WORKDIR /srv/www

# make node_modules cached.
# Src: https://nodesource.com/blog/8-protips-to-start-killing-it-when-dockerizing-node-js/
#
COPY package.json yarn.lock ./
RUN yarn --pure-lockfile

# server.js seldom changes, but requires to be built within docker
# to make its path correct
#
COPY server.js .babelrc ./
RUN NODE_ENV=production npm run build:server

# Other files, so that other files do not interfere with node_modules cache
#
COPY . .

# Generate .next, which includes absolute path to package so it must be done
# within container.
#
RUN NODE_ENV=production npm run build:next

EXPOSE 3000

ENTRYPOINT npm start<commit_msg>Update docker file to drop yarn and use node 8<commit_after>FROM node:8
WORKDIR /srv/www

# make node_modules cached.
# Src: https://nodesource.com/blog/8-protips-to-start-killing-it-when-dockerizing-node-js/
#
COPY package.json package.lock ./
RUN npm install

# server.js seldom changes, but requires to be built within docker
# to make its path correct
#
COPY server.js .babelrc ./
RUN NODE_ENV=production npm run build:server

# Other files, so that other files do not interfere with node_modules cache
#
COPY . .

# Generate .next, which includes absolute path to package so it must be done
# within container.
#
RUN NODE_ENV=production npm run build:next

EXPOSE 3000

ENTRYPOINT npm start
{'fraction_non_alphanumeric': 0.0838150289017341, 'fraction_numerical': 0.010115606936416185, 'mean_word_length': 4.12962962962963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1711863', 'n_tokens_mistral': 467, 'n_tokens_neox': 427, 'n_words': 160}