Skip to content

Commit 87281c3

Browse files
committed
Add a more up-to-date Containerfile in place of the old Dockerfile
1 parent d9c91df commit 87281c3

File tree

3 files changed

+33
-88
lines changed

3 files changed

+33
-88
lines changed

.dockerignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

Containerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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*

Dockerfile

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)