diff --git a/Others/node/24.6.0/24.03-lts-sp1/Dockerfile b/Others/node/24.6.0/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..0f6390fe48e37c43d9579ef3ec08e6c738c7a87f --- /dev/null +++ b/Others/node/24.6.0/24.03-lts-sp1/Dockerfile @@ -0,0 +1,28 @@ +ARG BASE=openeuler/openeuler:24.03-lts +ARG VERSION=24.6.0 + +FROM $BASE + +ARG VERSION +ARG TARGETARCH + +RUN yum update -y && \ + yum install -y wget && \ + yum clean all && \ + rm -rf /var/cache/yum && \ + rm -rf /tmp/* + +WORKDIR /root + +RUN case "${TARGETARCH}" in \ + amd64) NODE_ARCH=x64 ;; \ + arm64) NODE_ARCH=arm64 ;; \ + esac && \ + wget https://nodejs.org/download/release/v$VERSION/node-v$VERSION-linux-$NODE_ARCH.tar.gz && \ + tar -xzf node-v$VERSION-linux-$NODE_ARCH.tar.gz && \ + mv node-v$VERSION-linux-$NODE_ARCH /usr/local/node && \ + ln -s /usr/local/node/bin/node /usr/local/bin/node && \ + ln -s /usr/local/node/bin/npm /usr/local/bin/npm && \ + ln -s /usr/local/node/bin/npx /usr/local/bin/npx && \ + rm -fr node-v$VERSION-linux-$NODE_ARCH.tar.gz + diff --git a/Others/node/meta.yml b/Others/node/meta.yml index d631946117866ba660b1e63b639fc38822af492f..e6678667fd6aab94e3b1ff2df0f862c84952f6cd 100644 --- a/Others/node/meta.yml +++ b/Others/node/meta.yml @@ -3,4 +3,6 @@ 20.18.2-oe2403sp1: path: 20.18.2/24.03-lts-sp1/Dockerfile 24.4.0-oe2403sp2: - path: 24.4.0/24.03-lts-sp2/Dockerfile \ No newline at end of file + path: 24.4.0/24.03-lts-sp2/Dockerfile +24.6.0-oe2403sp1: + path: 24.6.0/24.03-lts-sp1/Dockerfile \ No newline at end of file