diff --git a/Others/node/20.11.1/24.03-lts/Dockerfile b/Others/node/20.11.1/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..4b8dffe4a48fd1ca61ba120fad67dea79c904535 --- /dev/null +++ b/Others/node/20.11.1/24.03-lts/Dockerfile @@ -0,0 +1,28 @@ +ARG BASE=openeuler/openeuler:24.03-lts +ARG VERSION=20.11.1 + +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 new file mode 100644 index 0000000000000000000000000000000000000000..90aec0f6139ae83c23440ceb69c2b1f0e824ccf3 --- /dev/null +++ b/Others/node/meta.yml @@ -0,0 +1,2 @@ +20.11.1-oe2403lts: + path: 20.11.1/24.03-lts/Dockerfile \ No newline at end of file