FROM alpine:3.22.2 # Install packages needed in both building and running. RUN apk update && \ apk add --no-cache \ libstdc++ # Install tools required for building. RUN mkdir -p /root/.local/bin ENV PATH="${PATH}:/root/.local/bin" RUN apk add --no-cache \ autoconf \ bash \ binutils \ build-base \ cmake \ clang \ clang-extra-tools \ gdb \ git \ libtool \ linux-headers \ ninja \ m4 \ perl \ python3 \ pipx # Install tools we need for building the cross compiler. RUN apk add --no-cache \ gpg \ gpg-agent \ automake \ flex \ make \ texinfo \ xz \ help2man \ gawk \ bison \ ncurses-dev \ rsync \ wget RUN mkdir -p /workspace WORKDIR /workspace # Download crosstool-ng that we use to build the cross compiler. RUN <