# Build/test/flash environment for roro9stack. No toolchain needed on the host.
FROM python:3.12-slim

RUN apt-get update \
 && apt-get install -y --no-install-recommends git build-essential \
 && rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir platformio gcovr

# Toolchains and libraries are cached in a named volume mounted here.
RUN mkdir -p /pio && chmod 777 /pio
ENV PLATFORMIO_CORE_DIR=/pio
WORKDIR /work
