add ch32v wlink dockerfile
This commit is contained in:
commit
778e6de935
1 changed files with 15 additions and 0 deletions
15
ch32/Dockerfile
Normal file
15
ch32/Dockerfile
Normal 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 ./
|
||||
Loading…
Add table
Add a link
Reference in a new issue