File tree Expand file tree Collapse file tree 3 files changed +33
-88
lines changed Expand file tree Collapse file tree 3 files changed +33
-88
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ FROM debian:bullseye-slim
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV LC_ALL=C.UTF-8
5
+ ENV LANG=C.UTF-8
6
+
7
+ WORKDIR /root
8
+
9
+ # Install dependencies and required tools, then clean up after ourselves.
10
+ RUN apt-get update \
11
+ && apt-get install -y build-essential curl libudev-dev pkg-config xz-utils \
12
+ && apt-get clean -y \
13
+ && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
14
+
15
+ # Install the stable Rust toolchain along with all targets supported by the ESP32-C3.
16
+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
17
+ | sh -s -- -y --profile minimal \
18
+ && $HOME/.cargo/bin/rustup component add rust-src \
19
+ && $HOME/.cargo/bin/rustup target add \
20
+ riscv32i-unknown-none-elf \
21
+ riscv32imc-unknown-none-elf \
22
+ riscv32imac-unknown-none-elf
23
+
24
+ # Install the fork of the Rust toolchain with Xtensa support, along with any other required build
25
+ # tools. Additionally installs `cargo espflash` and `espflash` while we're at it.
26
+ RUN curl -LO https://raw.githubusercontent.com/esp-rs/rust-build/main/install-rust-toolchain.sh \
27
+ && chmod +x install-rust-toolchain.sh \
28
+ && ./install-rust-toolchain.sh \
29
+ --extra-crates "cargo-espflash espflash" \
30
+ --clear-cache "YES" \
31
+ --export-file export-rust.sh \
32
+ && cat export-rust.sh >> $HOME/.bashrc \
33
+ && rm -rf install-rust-toolchain.sh export-rust.sh /tmp/cargo-install*
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments