<commit_before>FROM mhart/alpine-node:4

# at the top to speed builds up
# squash together with npm install before official release
RUN apk update && \
    apk add make gcc g++ python git

RUN mkdir /src
ADD package.json /src/

WORKDIR /src

# If you need npm, don't use a base tag
# RUN npm install
RUN npm install --production

COPY . /src

EXPOSE 3000
ENTRYPOINT ["node", "baseswim.js"]<commit_msg>Production-ready Dockerfile with a 47MB image<commit_after>FROM mhart/alpine-node:4

# uncomment for dev
# RUN apk update && \
#     apk add make gcc g++ python git

RUN mkdir /src
ADD package.json /src/

WORKDIR /src

# comment in dev
RUN apk update && \
    apk add make gcc g++ python git && \
    npm install --production && \
    apk del make gcc g++ python git

# uncomment for dev
# RUN npm install --production

COPY . /src

EXPOSE 3000
ENTRYPOINT ["node", "baseswim.js"]
{'fraction_non_alphanumeric': 0.09545454545454546, 'fraction_numerical': 0.013636363636363636, 'mean_word_length': 3.215311004784689, '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': '4836019', 'n_tokens_mistral': 320, 'n_tokens_neox': 282, 'n_words': 122}