<commit_before>FROM python:3.4

LABEL maintainer="Mapotempo <<EMAIL>>"

ARG ADDOK_VERSION
ENV ADDOK_VERSION ${ADDOK_VERSION:-1.0.0}

RUN apt-get -q update && \
    apt-get -qy install redis-tools && \
    \
    pip install gunicorn addok==${ADDOK_VERSION} addok-fr==${ADDOK_VERSION} addok-france==${ADDOK_VERSION} addok-csv==${ADDOK_VERSION} && \
    pip install git+https://github.com/Mapotempo/addok_france_clean && \
    pip install git+https://github.com/Mapotempo/addok_search2steps && \
    pip install git+https://github.com/Mapotempo/addok_usage_name_BAN_FR && \
    mkdir /etc/addok && \
    \
# Cleanup Debian packages
    apt-get remove -y git build-essential zlib1g-dev gdal-bin && \
    apt-get autoremove -y && \
    apt-get clean && \
    echo -n > /var/lib/apt/extended_states && \
    rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*

ADD config.conf /etc/addok/config.conf

EXPOSE 7878

ENTRYPOINT ["gunicorn"]

CMD ["--bind", "0.0.0.0:7878", "--env", "ADDOK_CONFIG_MODULE=/etc/addok/config.py", "--timeout", "7200", "--workers", "8", "addok.http.wsgi"]<commit_msg>Remove unneeded config variable.<commit_after>FROM python:3.4

LABEL maintainer="Mapotempo <<EMAIL>>"

ARG ADDOK_VERSION
ENV ADDOK_VERSION ${ADDOK_VERSION:-1.0.0}

RUN apt-get -q update && \
    apt-get -qy install redis-tools && \
    \
    pip install gunicorn addok==${ADDOK_VERSION} addok-fr==${ADDOK_VERSION} addok-france==${ADDOK_VERSION} addok-csv==${ADDOK_VERSION} && \
    pip install git+https://github.com/Mapotempo/addok_france_clean && \
    pip install git+https://github.com/Mapotempo/addok_search2steps && \
    pip install git+https://github.com/Mapotempo/addok_usage_name_BAN_FR && \
    mkdir /etc/addok && \
    \
# Cleanup Debian packages
    apt-get remove -y git build-essential zlib1g-dev gdal-bin && \
    apt-get autoremove -y && \
    apt-get clean && \
    echo -n > /var/lib/apt/extended_states && \
    rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*

ADD config.conf /etc/addok/config.conf

EXPOSE 7878

ENTRYPOINT ["gunicorn"]

CMD ["--bind", "0.0.0.0:7878", "--timeout", "7200", "--workers", "8", "addok.http.wsgi"]
{'fraction_non_alphanumeric': 0.17309501411100658, 'fraction_numerical': 0.022577610536218252, 'mean_word_length': 3.314401622718053, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '201966', 'n_tokens_mistral': 831, 'n_tokens_neox': 802, 'n_words': 152}