<commit_before># Pinning a particular node version to prevent drift
# Could also use node:latest if you prefer
FROM node:6.3.1

# Create a user within the image (appuser) to run as
RUN useradd --user-group --create-home --shell /bin/false appuser

ENV HOME=/home/appuser

COPY package.json npm-shrinkwrap.json $HOME/workdir/
RUN chown -R appuser:appuser $HOME/*

USER appuser

WORKDIR $HOME/workdir

RUN npm install<commit_msg>Modify Docker image to expose dev-server port<commit_after># Pinning a particular node version to prevent drift
# Could also use node:latest if you prefer
FROM node:6.3.1

# Create a user within the image (appuser) to run as
RUN useradd --user-group --create-home --shell /bin/false appuser

ENV HOME=/home/appuser

COPY package.json npm-shrinkwrap.json $HOME/workdir/
RUN chown -R appuser:appuser $HOME/*

USER appuser

WORKDIR $HOME/workdir

RUN npm install

EXPOSE 3333
CMD ["npm", "start"]
{'fraction_non_alphanumeric': 0.09130434782608696, 'fraction_numerical': 0.010869565217391304, 'mean_word_length': 4.174157303370786, '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': '6452967', 'n_tokens_mistral': 311, 'n_tokens_neox': 293, 'n_words': 116}