FROM registry.yandex.net/tools/raw-ubuntu:16.04

RUN apt-get update \
    && apt-get install -y \
        python-pip \
        python-dev \
        python-setuptools \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

RUN pip install --disable-pip-version-check -i https://pypi.yandex-team.ru/simple/ \
    django==1.11.22 \
    django-nose==1.4.6 \
    pymongo \
    mongomock \
    mock==1.0.1

COPY tests tests
COPY emission emission
COPY tests.py /

CMD ./tests.py
