15 lines
554 B
Docker
15 lines
554 B
Docker
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 ./
|