<commit_before>FROM iojs:1.8

RUN mkdir -p /usr/src/app

WORKDIR /usr/src/app

VOLUME /root/.npm

COPY .npmrc /root/.npmrc

ENV NPM_CONFIG_LOGLEVEL=warn

RUN npm install -g nodemon && npm install -g babel && npm install -g node-gyp-install

ADD package.json /usr/src/app/package.json

RUN npm install

ADD . /usr/src/app

EXPOSE 8000

ENTRYPOINT ["nodemon", "--watch", "/config", "--exec"]

CMD [ "./scripts/start.sh"]<commit_msg>add correct user<commit_after>FROM iojs:1.8

# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN addgroup --gid 1001 hoist && adduser --system --uid 1020 --ingroup hoist --disabled-password hoist && usermod -a -G staff hoist && chown -R root:staff /usr/local/

#create and set the working directory
RUN mkdir -p /usr/src/app && mkdir /home/hoist/.npm

#copy npmrc to enable login to private npm
COPY .npmrc /home/hoist/.npmrc

#sort out permissions
RUN chown hoist:hoist /home/hoist/.npmrc && chown -R hoist:hoist /home/hoist/.npm && chown -R hoist:hoist /usr/src/app

VOLUME /home/hoist/.npm

USER hoist

WORKDIR /usr/src/app

#only show warnings for npm
ENV NPM_CONFIG_LOGLEVEL=warn

#install global packages
RUN npm install -g nodemon && npm install -g babel

ADD package.json /usr/src/app/package.json
RUN npm install

#ensure nodemon doesn't create heapdumps
ENV NODE_HEAPDUMP_OPTIONS=nosignal

#add source and ensure it's owned by the hoist user
USER root
ADD . /usr/src/app
RUN chown -R hoist:hoist /usr/src/app
USER hoist

EXPOSE 8000

ENTRYPOINT ["nodemon", "--watch", "/config", "--exec"]

CMD [ "./scripts/start.sh"]
{'fraction_non_alphanumeric': 0.11858190709046455, 'fraction_numerical': 0.012224938875305624, 'mean_word_length': 3.6505681818181817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '280422', 'n_tokens_mistral': 603, 'n_tokens_neox': 564, 'n_words': 196}