# Start from the official Rust dev container image for Debian 12 (bookworm)
FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm

# Install ARM cross-compilation toolchain packages
RUN apt-get update && \
  apt-get install -y --no-install-recommends \
    gdb-multiarch \
    gcc-arm-linux-gnueabihf \
    g++-arm-linux-gnueabihf \
    binutils-arm-linux-gnueabihf && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/*

RUN rustup target add armv7-unknown-linux-gnueabihf