<commit_before>#
FROM muccg/python-base:ubuntu14.04-2.7
MAINTAINER ccg <<EMAIL>>

ENV DEBIAN_FRONTEND noninteractive

# Project specific deps
RUN apt-get update && apt-get install -y \
  git \
  libpcre3 \
  libpcre3-dev \
  libpq-dev \
  libssl-dev \
  && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN env --unset=DEBIAN_FRONTEND

WORKDIR /app
RUN git clone --depth=1 --branch=0.8.9 https://bitbucket.org/ccgmurdoch/rdrf.git .

WORKDIR /app/rdrf
RUN pip install --process-dependency-links .

EXPOSE 9100 9101
VOLUME ["/data"]

RUN chmod +x /app/docker-entrypoint.sh

# Drop privileges, set home for ccg-user
USER ccg-user
ENV HOME /data
WORKDIR /data
<commit_msg>Bumped version number to 0.8.10 in release dockerfile I'd forgotten<commit_after>#
FROM muccg/python-base:ubuntu14.04-2.7
MAINTAINER ccg <<EMAIL>>

ENV DEBIAN_FRONTEND noninteractive

# Project specific deps
RUN apt-get update && apt-get install -y \
  git \
  libpcre3 \
  libpcre3-dev \
  libpq-dev \
  libssl-dev \
  && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN env --unset=DEBIAN_FRONTEND

WORKDIR /app
RUN git clone --depth=1 --branch=0.8.10 https://bitbucket.org/ccgmurdoch/rdrf.git .

WORKDIR /app/rdrf
RUN pip install --process-dependency-links .

EXPOSE 9100 9101
VOLUME ["/data"]

RUN chmod +x /app/docker-entrypoint.sh

# Drop privileges, set home for ccg-user
USER ccg-user
ENV HOME /data
WORKDIR /data

{'fraction_non_alphanumeric': 0.1296426068675543, 'fraction_numerical': 0.03153468815697267, 'mean_word_length': 3.224852071005917, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2233811', 'n_tokens_mistral': 600, 'n_tokens_neox': 558, 'n_words': 147}