setup cargo run to use containerized build tools that are not rust tools

This commit is contained in:
2025-09-25 22:30:41 +02:00
parent c4820e8035
commit 50a052df9a
7 changed files with 70 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
FROM debian:latest
RUN apt update -y && apt upgrade -y && apt install unzip curl xz-utils nodejs npm -y
RUN apt update -y && apt upgrade -y && apt install unzip curl xz-utils nodejs -y
RUN cd /root && \
curl -L -o xpack-riscv-toolchain.tar.gz "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v14.2.0-3/xpack-riscv-none-elf-gcc-14.2.0-3-linux-x64.tar.gz" && \
@@ -12,3 +12,5 @@ RUN cd /root && \
mv xpack-toolchain/libexec /usr/local && \
mv xpack-toolchain/riscv-none-elf /usr/local && \
rm -rf xpack-toolchain xpack-riscv-toolchain.tar.gz
RUN apt install npm -y