<commit_before>FROM node:6.2.0

# add dumb-init for entrypoint to apps
COPY support/docker/dumb-init_1.0.1_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init

# set timezone on container
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /usr/src/stevenschobert.com
RUN mkdir -p /usr/share/nginx/html
RUN mkdir -p /etc/nginx/conf.d
WORKDIR /usr/src/stevenschobert.com

COPY lib/ lib/
COPY includes/ includes/
COPY layouts/ layouts/
COPY src/ src/
COPY package.json build.js build-server.js redirects.json ./
COPY default.conf /etc/nginx/conf.d/

RUN touch .env
RUN npm install

ENV BUILD_DIR /usr/share/nginx/html
ENV SKIP_CLEAN 1
ENV PORT 3000

VOLUME /usr/share/nginx/html
VOLUME /etc/nginx/conf.d

EXPOSE 3000

CMD ["dumb-init", "node", "build-server"]
<commit_msg>clean docker container files on build<commit_after>FROM node:6.2.0

# add dumb-init for entrypoint to apps
COPY support/docker/dumb-init_1.0.1_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init

# set timezone on container
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /usr/src/stevenschobert.com
RUN mkdir -p /usr/share/nginx/html
RUN mkdir -p /etc/nginx/conf.d
WORKDIR /usr/src/stevenschobert.com

COPY lib/ lib/
COPY includes/ includes/
COPY layouts/ layouts/
COPY src/ src/
COPY package.json build.js build-server.js redirects.json ./
COPY default.conf /etc/nginx/conf.d/

RUN touch .env
RUN npm install

ENV BUILD_DIR /usr/share/nginx/html
ENV PORT 3000

VOLUME /usr/share/nginx/html
VOLUME /etc/nginx/conf.d

EXPOSE 3000

CMD ["dumb-init", "node", "build-server"]

{'fraction_non_alphanumeric': 0.1240491515506144, 'fraction_numerical': 0.01930953774136922, 'mean_word_length': 3.584450402144772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4276281', 'n_tokens_mistral': 710, 'n_tokens_neox': 659, 'n_words': 178}