FROM --platform=$BUILDPLATFORM debian:trixie-slim AS kernel-build ENV DEBIAN_FRONTEND=noninteractive WORKDIR /build ARG APT_PROXY RUN if [ -n "${APT_PROXY}" ]; then \ echo "Acquire::http::Proxy \"http://${APT_PROXY}\";" > /etc/apt/apt.conf.d/01proxy; \ fi RUN apt-get update && apt-get install -y --no-install-recommends \ bash \ bc \ bison \ build-essential \ cpio \ ca-certificates \ curl \ dosfstools \ file \ fdisk \ fuse-overlayfs \ gdisk \ e2fsprogs \ flex \ git \ gettext-base \ jq \ kmod \ libelf-dev \ libssl-dev \ make \ pahole \ parted \ perl \ pv \ python3 \ qemu-user-static \ podman \ skopeo \ rsync \ tar \ udev \ xz-utils \ zstd \ dwarves \ gcc-aarch64-linux-gnu \ binutils-aarch64-linux-gnu \ libc6-dev-arm64-cross \ linux-libc-dev-arm64-cross \ u-boot-tools \ device-tree-compiler \ && rm -rf /var/lib/apt/lists/*