# Build environment for esp32-arduino-lib-builder release/v4.4 (IDF 4.4.8, a9d0f22193).
# HOME and the checkout path match the upstream CI runner, so paths baked into the
# libraries (__FILE__ prefix maps, debug info) come out the same as the shipped ones.
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq && apt-get install -y -qq git wget curl flex bison gperf python3 python3-pip python3-venv \
    ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 jq unzip xz-utils sed patch file \
    && rm -rf /var/lib/apt/lists/* \
    && python3 -m pip install -q --upgrade pip && python3 -m pip install -q "cmake>=3.20,<3.25" \
    && useradd -m -d /home/runner runner \
    && git config --system core.abbrev 10
USER runner
ENV HOME=/home/runner
