FROM ubuntu:bionic-20180821

ENV \
    #
    # Some APT packages like 'tzdata' wait for user input on install by default.
    # https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
    DEBIAN_FRONTEND=noninteractive

RUN \
    apt-get update -q && \
    apt-get install -qy --no-install-recommends \
        #
        # Cloning the repository
        git \
        ca-certificates \
        #
        # Running mach
        python \
        python-pip \
        #
        # Installing rustup and sccache (build dockerfile) or fetching build artifacts (run tasks)
        curl && \
    # Running mach
    pip install virtualenv


FROM ubuntu:bionic-20180821

ENV \
    #
    # Some APT packages like 'tzdata' wait for user input on install by default.
    # https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
    DEBIAN_FRONTEND=noninteractive

RUN \
    apt-get update -q && \
    apt-get install -qy --no-install-recommends \
        #
        # Cloning the repository
        git \
        ca-certificates \
        #
        # Running mach
        python \
        python-pip \
        python-dev \
        #
        # Installing rustup and sccache (build dockerfile) or fetching build artifacts (run tasks)
        curl && \
    # Running mach
    pip install virtualenv


Install python development package on CI.