<commit_before>FROM mhart/alpine-node:6.9.2

MAINTAINER PRX <<EMAIL>>
LABEL org.prx.app="yes"

ENV TINI_VERSION v0.9.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
RUN chmod +x /tini

ENV APP_HOME /app
ENV PHANTOM true
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
EXPOSE 4200

ENTRYPOINT ["/tini", "--", "/bin/sh", "./bin/application"]
CMD [ "serve" ]

ADD ./package.json ./
RUN apk --update add curl git && \
  curl -Ls "https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz" | tar xz -C / && \
  npm install --unsafe-perm --loglevel error && \
  apk del curl && \
  npm cache clean && \
  rm -rf /usr/share/man /tmp/* /var/tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp

ADD . ./
RUN npm run build
<commit_msg>Install aws-secrets<commit_after>FROM mhart/alpine-node:6.9.2

MAINTAINER PRX <<EMAIL>>
LABEL org.prx.app="yes"

# install git, aws-cli
RUN apk --no-cache add git ca-certificates \
    python py-pip py-setuptools groff less && \
    pip --no-cache-dir install awscli

# install PRX aws-secrets scripts
RUN git clone -o github https://github.com/PRX/aws-secrets
RUN cp ./aws-secrets/bin/* /usr/local/bin

ENV TINI_VERSION v0.9.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
RUN chmod +x /tini

ENV APP_HOME /app
ENV PHANTOM true
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
EXPOSE 4200

ENTRYPOINT ["/tini", "--", "/bin/sh", "./bin/application"]
CMD [ "serve" ]

ADD ./package.json ./
RUN apk --update add curl git && \
  curl -Ls "https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz" | tar xz -C / && \
  npm install --unsafe-perm --loglevel error && \
  apk del curl && \
  npm cache clean && \
  rm -rf /usr/share/man /tmp/* /var/tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp

ADD . ./
RUN npm run build

{'fraction_non_alphanumeric': 0.1664025356576862, 'fraction_numerical': 0.013734812466983624, 'mean_word_length': 3.021231422505308, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '280377', 'n_tokens_mistral': 771, 'n_tokens_neox': 728, 'n_words': 183}