<commit_before>FROM node:6.9.1

RUN mkdir -p ~/app/node_modules

WORKDIR /home/foo/app

COPY yarn.lock yarn.lock
COPY package.json package.json

RUN adduser foo
RUN chown -R foo /home/foo
RUN chown -R foo /usr/local

USER foo

RUN npm install --global yarn

RUN ls -la ~/app

RUN yarn install

ADD . /home/foo/app

EXPOSE 3000
USER root
ENV PORT=3000
ENV NODE_ENV=production
RUN npm run build-prod
ENTRYPOINT ["node", "./.build/server.js"]<commit_msg>- update docker file<commit_after>FROM node:6.9.1

RUN mkdir -p ~/app/node_modules

WORKDIR /home/foo/app

COPY yarn.lock yarn.lock
COPY package.json package.json

RUN adduser foo
RUN chown -R foo /home/foo
RUN chown -R foo /usr/local

USER foo

#RUN npm install --global yarn
RUN wget https://yarnpkg.com/latest.tar.gz
RUN mkdir -p /opt/yarn
RUN tar -xf latest.tar.gz dist -C /opt/yarn --strip-components=1
RUN ls /opt/yarn
ENV PATH "$PATH:/opt/yarn/bin"
#RUN ls -la ~/app

RUN yarn install

ADD . /home/foo/app

EXPOSE 3000
USER root
ENV PORT=3000
ENV NODE_ENV=production
RUN npm run build-prod
ENTRYPOINT ["node", "./.build/server.js"]
{'fraction_non_alphanumeric': 0.11570247933884298, 'fraction_numerical': 0.021120293847566574, 'mean_word_length': 3.3951612903225805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3190829', 'n_tokens_mistral': 440, 'n_tokens_neox': 402, 'n_words': 139}