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

# deb зависимости
COPY deps/debian-build.txt /
RUN apt-get update -qq \
    && cat debian-build.txt | xargs apt-get install -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2

# python зависимости
COPY deps/python-dev.txt /
RUN pip3 install -r python-dev.txt
