<commit_before>FROM node:5.7-slim
MAINTAINER <NAME> "<EMAIL>"

RUN mkdir /nodeApp
WORKDIR /nodeApp

# ---------------- #
#   Installation   #
# ---------------- #

RUN apt-get update
RUN apt-get install -y git

RUN npm install bower -g
RUN npm install webpack -g

ADD bower.json /nodeApp/
RUN bower install --allow-root

ADD package.json /nodeApp/

# Install only production dependencies
RUN npm install --production

ADD . /nodeApp

# ----------------- #
#   Configuration   #
# ----------------- #

EXPOSE 3000

# ----------- #
#   Cleanup   #
# ----------- #

RUN apt-get autoremove -y && apt-get -y clean && \
		rm -rf /var/lib/apt/lists/*

# -------- #
#   Run!   #
# -------- #

ENTRYPOINT ["npm", "run", "build"]
<commit_msg>undo --production flag: webpack needs dev dependencies<commit_after>FROM node:5.7-slim
MAINTAINER <NAME> "<EMAIL>"

RUN mkdir /nodeApp
WORKDIR /nodeApp

# ---------------- #
#   Installation   #
# ---------------- #

RUN apt-get update
RUN apt-get install -y git

RUN npm install bower -g
RUN npm install webpack -g

ADD bower.json /nodeApp/
RUN bower install --allow-root

ADD package.json /nodeApp/

# Install only production dependencies? todo: handle webpack issue
RUN npm install

ADD . /nodeApp

# ----------------- #
#   Configuration   #
# ----------------- #

EXPOSE 3000

# ----------- #
#   Cleanup   #
# ----------- #

RUN apt-get autoremove -y && apt-get -y clean && \
		rm -rf /var/lib/apt/lists/*

# -------- #
#   Run!   #
# -------- #

ENTRYPOINT ["npm", "run", "build"]

{'fraction_non_alphanumeric': 0.2493421052631579, 'fraction_numerical': 0.007894736842105263, 'mean_word_length': 1.7258064516129032, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1583177', 'n_tokens_mistral': 521, 'n_tokens_neox': 496, 'n_words': 145}