Skip to content

Commit 3b54365

Browse files
committed
feat: Update devcontainer
1 parent 0fc0e50 commit 3b54365

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

cargo/.devcontainer/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT=bullseye
1+
ARG VARIANT=bookworm-slim
22
FROM debian:${VARIANT}
33
ENV DEBIAN_FRONTEND=noninteractive
44
ENV LC_ALL=C.UTF-8
@@ -12,8 +12,8 @@ ARG GITHUB_TOKEN
1212

1313
# Install dependencies
1414
RUN apt-get update \
15-
&& apt-get install -y git curl gcc clang ninja-build libudev-dev unzip xz-utils\
16-
python3 python3-pip python3-venv libusb-1.0-0 libssl-dev pkg-config libpython2.7 \
15+
&& apt-get install -y pkg-config curl gcc clang libudev-dev unzip xz-utils \
16+
git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 \
1717
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
1818

1919
# Set users
@@ -36,11 +36,15 @@ RUN ARCH=$($HOME/.cargo/bin/rustup show | grep "Default host" | sed -e 's/.* //'
3636
unzip "${HOME}/.cargo/bin/cargo-espflash.zip" -d "${HOME}/.cargo/bin/" && \
3737
rm "${HOME}/.cargo/bin/cargo-espflash.zip" && \
3838
chmod u+x "${HOME}/.cargo/bin/cargo-espflash" && \
39+
curl -L "https://github.com/esp-rs/espflash/releases/latest/download/espflash-${ARCH}.zip" -o "${HOME}/.cargo/bin/espflash.zip" && \
40+
unzip "${HOME}/.cargo/bin/espflash.zip" -d "${HOME}/.cargo/bin/" && \
41+
rm "${HOME}/.cargo/bin/espflash.zip" && \
42+
chmod u+x "${HOME}/.cargo/bin/espflash" && \
3943
curl -L "https://github.com/esp-rs/embuild/releases/latest/download/ldproxy-${ARCH}.zip" -o "${HOME}/.cargo/bin/ldproxy.zip" && \
4044
unzip "${HOME}/.cargo/bin/ldproxy.zip" -d "${HOME}/.cargo/bin/" && \
4145
rm "${HOME}/.cargo/bin/ldproxy.zip" && \
4246
chmod u+x "${HOME}/.cargo/bin/ldproxy" && \
43-
curl -L "https://github.com/bjoernQ/esp-web-flash-server/releases/latest/download/web-flash-${ARCH}.zip" -o "${HOME}/.cargo/bin/web-flash.zip" && \
47+
curl -L "https://github.com/esp-rs/esp-web-flash-server/releases/latest/download/web-flash-${ARCH}.zip" -o "${HOME}/.cargo/bin/web-flash.zip" && \
4448
unzip "${HOME}/.cargo/bin/web-flash.zip" -d "${HOME}/.cargo/bin/" && \
4549
rm "${HOME}/.cargo/bin/web-flash.zip" && \
4650
chmod u+x "${HOME}/.cargo/bin/web-flash"

0 commit comments

Comments
 (0)