<commit_before>FROM vstconsulting/images:tox AS build

WORKDIR /usr/local/project

COPY . .

RUN tox -c tox_build.ini -e py36-build && \
    mv dist/ environment/docker_data/

###############################################################

FROM alpine:3.11

ENV WORKER=ENABLE

COPY --from=build /usr/local/project/environment/docker_data/ /etc/polemarch/

RUN cat /etc/polemarch/system_requirements.txt | xargs apk --update add && \
    cat /etc/polemarch/system_requirements_build.txt | xargs apk add --virtual .build-deps && \
    virtualenv -p python3 /opt/polemarch && \
    /opt/polemarch/bin/pip3 install -U pip wheel setuptools && \
    /opt/polemarch/bin/pip3 install -U -r /etc/polemarch/system_requirements_pip.txt && \
    mkdir -p /projects /hooks && \
    /opt/polemarch/bin/pip3 install -U /etc/polemarch/dist/$(ls /etc/polemarch/dist/ | grep "\.tar\.gz" | tail -1)[mysql,postgresql] && \
    mkdir -p /run/openldap && \
    apk --purge del .build-deps && \
    rm -rf ~/.cache/pip/* && \
    rm -rf /var/cache/apk/*

EXPOSE 8080

ENTRYPOINT [ "/opt/polemarch/bin/polemarchctl" ]
CMD ["dockerrun"]
<commit_msg>Add paramiko to docker image.<commit_after>FROM vstconsulting/images:tox AS build

WORKDIR /usr/local/project

COPY . .

RUN tox -c tox_build.ini -e py36-build && \
    mv dist/ environment/docker_data/

###############################################################

FROM alpine:3.11

ENV WORKER=ENABLE

COPY --from=build /usr/local/project/environment/docker_data/ /etc/polemarch/

RUN cat /etc/polemarch/system_requirements.txt | xargs apk --update add && \
    cat /etc/polemarch/system_requirements_build.txt | xargs apk add --virtual .build-deps && \
    virtualenv -p python3 /opt/polemarch && \
    /opt/polemarch/bin/pip3 install -U pip wheel setuptools && \
    /opt/polemarch/bin/pip3 install -U -r /etc/polemarch/system_requirements_pip.txt && \
    mkdir -p /projects /hooks && \
    /opt/polemarch/bin/pip3 install -U /etc/polemarch/dist/$(ls /etc/polemarch/dist/ | grep "\.tar\.gz" | tail -1)[mysql,postgresql] && \
    /opt/polemarch/bin/pip3 install paramiko && \
    mkdir -p /run/openldap && \
    apk --purge del .build-deps && \
    rm -rf ~/.cache/pip/* && \
    rm -rf /var/cache/apk/*

EXPOSE 8080

ENTRYPOINT [ "/opt/polemarch/bin/polemarchctl" ]
CMD ["dockerrun"]

{'fraction_non_alphanumeric': 0.19775474956822106, 'fraction_numerical': 0.012521588946459413, 'mean_word_length': 2.9948275862068967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6142362', 'n_tokens_mistral': 913, 'n_tokens_neox': 831, 'n_words': 177}