<commit_before>FROM ubuntu:14.04.2
MAINTAINER <EMAIL>

ENV LANG C.UTF-8
ENV PATH /usr/local/bin:${PATH}

RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get update && apt-get upgrade -y --no-install-recommends && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    make g++ gcc libc6-dev git curl\
    libssl-dev libyaml-dev libffi-dev \
    ca-certificates software-properties-common yui-compressor \
    nodejs npm \
    libpq5 sqlite3 libmysqlclient18 \
    libcurl3 libcurl3-nss libpcre3 libxml2 libxslt1.1 \
    libreadline5 libyaml-0-2\
    libmysqlclient-dev libsqlite3-dev libpq-dev \
    libcurl4-openssl-dev libpcre3-dev libxml2-dev libxslt-dev \
    libreadline-gplv2-dev \
    debhelper tk-dev python-all-dev  python-tk python-nose libfreetype6-dev \
    libjpeg-dev zlib1g-dev liblcms2-dev libwebp-dev python-pip && \
    apt-get clean
RUN ln -s /usr/bin/nodejs /usr/local/bin/node && \
    ln -s /usr/include/freetype2 /usr/local/include/freetype && \
    npm install -g npm@latest && \
    npm install -g less
RUN locale-gen en_US && \
    locale-gen en_US.UTF-8 && \
    dpkg-reconfigure locales

RUN mkdir -p /opt/pyapp/sotmjp-website
COPY . /opt/pyapp/sotmjp-website/
WORKDIR /opt/pyapp/sotmjp-website

RUN pip install -r requirements/dev.txt
#
#    python ./manage.py compress --force
#    ./build-css.sh
#    python ./manage.py collectstatic --noinput

EXPOSE 8000<commit_msg>docker: rebase to jessie and more<commit_after>FROM debian:jessie
MAINTAINER <EMAIL>

ENV PATH /usr/local/bin:${PATH}

## security upgrade and install dependencies
RUN apt-get update && apt-get upgrade -y --no-install-recommends && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    make g++ gcc libc6-dev git \
    curl libcurl3 libcurl3-nss \
    libssl-dev libyaml-dev libffi-dev \
    ca-certificates software-properties-common yui-compressor \
    libpq5 sqlite3 libmysqlclient18 \
    libpcre3 libxml2 libxslt1.1 \
    libreadline5 libyaml-0-2\
    libmysqlclient-dev libsqlite3-dev libpq-dev \
    libcurl4-openssl-dev libpcre3-dev libxml2-dev libxslt-dev \
    libreadline-gplv2-dev \
    debhelper tk-dev python-all-dev  python-tk python-nose libfreetype6-dev \
    libjpeg-dev zlib1g-dev liblcms2-dev libwebp-dev && \
    apt-get clean

## install pip and node/npm
RUN curl -sL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python - && \
    curl -sL https://deb.nodesource.com/setup | bash -

## workaround and update npm
RUN ln -s /usr/include/freetype2 /usr/local/include/freetype && \
    npm install -g npm@latest && \
    npm install -g less

## install website source
RUN mkdir -p /opt/pyapp/sotmjp-website
COPY . /opt/pyapp/sotmjp-website/
WORKDIR /opt/pyapp/sotmjp-website

## install requirements
RUN mkdir -p /root/.pip && cp pip.conf /root/.pip/pip.conf
RUN pip install -r requirements/dev.txt

## next step user should
#    python ./manage.py compress --force
#    ./build-css.sh
#    python ./manage.py collectstatic --noinput

EXPOSE 8000
{'fraction_non_alphanumeric': 0.11710827608766765, 'fraction_numerical': 0.01995420346745175, 'mean_word_length': 2.9205128205128204, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2694358', 'n_tokens_mistral': 1199, 'n_tokens_neox': 1111, 'n_words': 260}