FROM debian

RUN apt-get update && apt-get install -y wget xz-utils make cmake file
RUN wget https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--uclibc--stable-2025.08-1.tar.xz && tar -C /opt -xf x86-64--uclibc--stable-2025.08-1.tar.xz && rm /*.tar.xz
RUN wget https://toolchains.bootlin.com/downloads/releases/toolchains/mips32/tarballs/mips32--uclibc--stable-2025.08-1.tar.xz && tar -C /opt -xf mips32--uclibc--stable-2025.08-1.tar.xz && rm /*.tar.xz
RUN wget https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--uclibc--stable-2025.08-1.tar.xz && tar -C /opt -xf armv7-eabihf--uclibc--stable-2025.08-1.tar.xz && rm /*.tar.xz
RUN wget https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--uclibc--stable-2025.08-1.tar.xz && tar -C /opt -xf aarch64--uclibc--stable-2025.08-1.tar.xz && rm /*.tar.xz
COPY --chmod=0755 cross /usr/local/bin/cross
WORKDIR /work
