From 68b0e1bce23715aa31b0b591affcde929e33afbf Mon Sep 17 00:00:00 2001 From: George <58841610+Shinji-IkariG@users.noreply.github.com> Date: Fri, 19 Apr 2024 14:09:38 +0800 Subject: [PATCH] Install node.js 20 for Centos7 (#87) --- Dockerfile.centos7 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile.centos7 b/Dockerfile.centos7 index 5297046..679c4e5 100644 --- a/Dockerfile.centos7 +++ b/Dockerfile.centos7 @@ -122,3 +122,9 @@ RUN if [ "$(uname -m)" = "x86_64" ]; then \ fi \ && chmod +x mc \ && mv mc /usr/local/bin/ + +# Install Node.js +RUN cd /usr/src && \ + wget https://unofficial-builds.nodejs.org/download/release/v20.12.1/node-v20.12.1-linux-x64-glibc-217.tar.gz && \ + tar -zxf node-v20.12.1-linux-x64-glibc-217.tar.gz --strip-components=1 -C /usr/local/ && \ + rm node-v20.12.1-linux-x64-glibc-217.tar.gz