add ch32v wlink dockerfile

This commit is contained in:
sigil-03 2025-08-25 16:15:00 -06:00
commit 778e6de935

15
ch32/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM debian:stable-slim
RUN apt-get update && apt-get install --yes curl build-essential pkg-config libudev-dev libusb-1.0-0-dev
# install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="$PATH:/root/.cargo/bin"
# install toolchain
RUN . ${HOME}/.cargo/env && rustup install nightly && rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
# install wlink
RUN . ${HOME}/.cargo/env && cargo install --git https://github.com/ch32-rs/wlink
# set workdir to the current directory
WORKDIR ./