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.
This commit is contained in:
Massimo Santini 2025-03-28 15:56:32 +01:00 committed by GitHub
parent d766493725
commit 60289c6760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"]
CMD ["/bin/bash"]