From 60289c67604a8d66eeb85f85d9914bb1827cf485 Mon Sep 17 00:00:00 2001 From: Massimo Santini Date: Fri, 28 Mar 2025 15:56:32 +0100 Subject: [PATCH] Added nodejs and npm v22 installation (#763) * Added nodejs and npm v20 installation This closes #762. The required version can't be installed with `apt` since in the `espressif/idf:v5.4` image the default version is 18. The `gzipper` package, on the other hand, requires at least version 20. * Bumped node.js version to 22 As suggested in https://github.com/bitaxeorg/ESP-Miner/pull/763#discussion_r1995418993. --- .devcontainer/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 22f7f529..0daba61f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -15,6 +15,10 @@ RUN apt-get update \ RUN update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20 +# Node.js and npm (v20 is required) +RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - +RUN apt-get update && apt-get install -y nodejs + # QEMU ENV QEMU_REL=esp-develop-20220919 ENV QEMU_SHA256=f6565d3f0d1e463a63a7f81aec94cce62df662bd42fc7606de4b4418ed55f870 @@ -35,4 +39,4 @@ RUN echo "source /opt/esp/idf/export.sh > /dev/null 2>&1" >> ~/.bashrc ENTRYPOINT [ "/opt/esp/entrypoint.sh" ] -CMD ["/bin/bash"] \ No newline at end of file +CMD ["/bin/bash"]