FROM ubuntu:22.04 # Install dependencies RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update -qq && \ apt-get install -y -qq \ build-essential \ curl \ expect \ fuse \ libfuse-dev \ pkg-config \ qemu-system-x86 \ rsync \ nasm # Install rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ sh -s -- --default-toolchain nightly -y # Set path ENV PATH=/root/.cargo/bin:$PATH # Install redoxer COPY . /root/redoxer RUN cargo install --path /root/redoxer # Install redoxer toolchain RUN TARGET=x86_64-unknown-redox redoxer toolchain && \ TARGET=i686-unknown-redox redoxer toolchain && \ TARGET=aarch64-unknown-redox redoxer toolchain && \ TARGET=riscv64gc-unknown-redox redoxer toolchain # Ensure redoxer exec is working RUN redoxer exec true