<commit_before>FROM node:10.14.2-alpine

WORKDIR /app

COPY package.json .

RUN apk --no-cache update && \
  apk --no-cache upgrade && \
  apk add --no-cache fontconfig bash && \
  apk add --no-cache --virtual .build-dependencies curl git && \
  curl -Ls "https://github.com/tidepool-org/tools/raw/master/alpine_phantomjs_dependencies/dockerized-phantomjs.tar.xz" | tar xJ -C / && \
  mkdir -p dist node_modules /@tidepool/viz/node_modules /tideline/node_modules /tidepool-platform-client/node_modules && \
  chown -R node:node . /@tidepool /tideline /tidepool-platform-client && \
  apk del .build-dependencies && \
  rm -rf /usr/share/man /tmp/* /var/tmp/* /root/.npm /root/.node-gyp

USER node

RUN yarn install && \
  yarn cache clean

COPY . .

VOLUME /app

CMD ["npm", "start"]<commit_msg>Build server at Docker build time.<commit_after>FROM node:10.14.2-alpine

WORKDIR /app

COPY package.json .

RUN apk --no-cache update && \
  apk --no-cache upgrade && \
  apk add --no-cache fontconfig bash && \
  apk add --no-cache --virtual .build-dependencies curl git && \
  curl -Ls "https://github.com/tidepool-org/tools/raw/master/alpine_phantomjs_dependencies/dockerized-phantomjs.tar.xz" | tar xJ -C / && \
  mkdir -p dist node_modules /@tidepool/viz/node_modules /tideline/node_modules /tidepool-platform-client/node_modules && \
  chown -R node:node . /@tidepool /tideline /tidepool-platform-client && \
  apk del .build-dependencies && \
  rm -rf /usr/share/man /tmp/* /var/tmp/* /root/.npm /root/.node-gyp

USER node

RUN yarn install && \
  yarn cache clean 

COPY . .

RUN yarn build

VOLUME /app

CMD ["npm", "start"]
{'fraction_non_alphanumeric': 0.1517199017199017, 'fraction_numerical': 0.006142506142506142, 'mean_word_length': 2.9158653846153846, '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': '7602203', 'n_tokens_mistral': 628, 'n_tokens_neox': 580, 'n_words': 143}