FROM 475275892927.dkr.ecr.us-east-1.amazonaws.com/python-builder:0.1.0

ARG REVISION
ARG BUILDTIME
LABEL REVISION=${REVISION}
LABEL BUILDTIME=${BUILDTIME}

USER ${ROOT_USER}

RUN python3 -m venv dockerenv && \
    source ./dockerenv/bin/activate && \
    pip3 install -U pip && \
    pip3 install wheel && \
    pip3 wheel --wheel-dir=/app/wheels \
        pylint \
        pytest \
        pytest-cov \
        pytest-forked \
        pytest-pylint \
        pytest-xdist \
        pytest-mock \
        pytest-freezegun \
        pylint-quotes \
        parameterized \
        mypy \
        flake8 \
        moto \
        yapf \
        isort \
        pip-tools \
        colorama \
        ipdb \
        ipython \
        memory_profiler \
        objgraph \
        pympler