<commit_before>FROM instructure/node:8

# the instructure/node:8 docker image uses yarn 0.27 still, we want to use at least 1.3.2
USER root
ENV YARN_VERSION 1.3.2-1
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
  && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
  && apt-get update \
  && apt-get install -y --no-install-recommends yarn="$YARN_VERSION" \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
USER docker

ENV APP_HOME /usr/src/app
USER root

RUN mkdir -p $APP_HOME

COPY package.json $APP_HOME/

WORKDIR $APP_HOME

RUN yarn

COPY . $APP_HOME

# This makes the container stay running, until explicitly stopped
# rather than being a build only image.
CMD ["tail", "-f", "/dev/null"]<commit_msg>Pull canvas-lms yarn.lock file into canvas-planner Docker build<commit_after>FROM instructure/node:8

# the instructure/node:8 docker image uses yarn 0.27 still, we want to use at least 1.3.2
USER root
ENV YARN_VERSION 1.3.2-1
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
  && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
  && apt-get update \
  && apt-get install -y --no-install-recommends yarn="$YARN_VERSION" \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
USER docker

ENV APP_HOME /usr/src/app
USER root

RUN mkdir -p $APP_HOME

# The yarn.lock file doesn't exist in canvas-planner anymore and should be copied from canvas-lms before running this Docker build
COPY package.json yarn.lock $APP_HOME/

WORKDIR $APP_HOME

RUN yarn

COPY . $APP_HOME

# This makes the container stay running, until explicitly stopped
# rather than being a build only image.
CMD ["tail", "-f", "/dev/null"]
{'fraction_non_alphanumeric': 0.13038612199216565, 'fraction_numerical': 0.013430330162283156, 'mean_word_length': 3.3398058252427183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '6419260', 'n_tokens_mistral': 668, 'n_tokens_neox': 626, 'n_words': 202}