<commit_before>FROM kthse/kth-nodejs:12.0.0

LABEL maintainer="KTH-Webb <EMAIL>"

RUN mkdir -p /application
WORKDIR /application
ENV NODE_PATH /application

COPY ["package.json", "package.json"]
COPY ["package-lock.json", "package-lock.json"]
RUN npm install --production --no-optional

# Add the code and copy over the node_modules-catalog
COPY ["config", "config"]
COPY ["public", "public"]
COPY ["i18n", "i18n"]
COPY [".babelrc", ".babelrc"]
RUN mkdir -p server/views/system server/views/layouts

# (Node-gyp and parcel temporarily need Python and some build-essentials.)
RUN apk add --no-cache --virtual .gyp-dependencies python make g++ util-linux && \
  npm run docker && \
  apk del .gyp-dependencies

# Copy source files, not processed by build.
COPY ["app.js", "app.js"]
COPY ["server", "server"]

EXPOSE 3000

CMD ["node", "app.js"]<commit_msg>Dockerfile revised<commit_after>FROM kthse/kth-nodejs:12.0.0
LABEL maintainer="KTH-Webb <EMAIL>"

WORKDIR /application

COPY ["config", "config"]
COPY ["i18n", "i18n"]
COPY ["public", "public"]
COPY ["server", "server"]

COPY [".babelrc", ".babelrc"]
COPY ["app.js", "app.js"]
COPY ["package.json", "package.json"]
COPY ["package-lock.json", "package-lock.json"]

RUN apk add --no-cache --virtual .gyp-dependencies python make g++ util-linux && \
  npm run docker && \
  apk del .gyp-dependencies

EXPOSE 3000

ENV NODE_PATH /application
CMD ["node", "app.js"]
{'fraction_non_alphanumeric': 0.16902404526166903, 'fraction_numerical': 0.016973125884016973, 'mean_word_length': 4.484496124031008, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1612541', 'n_tokens_mistral': 530, 'n_tokens_neox': 484, 'n_words': 148}