# Test runner: Ledger's dev-tools image (speculos) plus ragger.
#
# The upstream image ships speculos but not ragger, and its system Python is
# PEP-668 managed, so ragger goes into the same venv speculos lives in.
#
# Built and run by ../scripts/test.
FROM ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest

COPY standalone/requirements.txt /tmp/requirements.txt
RUN /opt/venv/bin/pip install --no-cache-dir -r /tmp/requirements.txt \
    && rm /tmp/requirements.txt

ENV PATH="/opt/venv/bin:${PATH}"
