diff --git a/image/runtime-node16/.dockerignore b/image/runtime-node16/.dockerignore new file mode 100644 index 0000000..94992bf --- /dev/null +++ b/image/runtime-node16/.dockerignore @@ -0,0 +1,5 @@ +# 由 build.sh 预下载的 Node 压缩包经 ADD 解压进镜像, +# ADD 的源文件必须在构建上下文内,因此 *.tar.gz 不能在这里忽略 +build.sh +.git/ +.DS_Store diff --git a/image/runtime-node16/.gitignore b/image/runtime-node16/.gitignore new file mode 100644 index 0000000..9a1bb28 --- /dev/null +++ b/image/runtime-node16/.gitignore @@ -0,0 +1,3 @@ +# 构建产物 / 本地缓存 +*.tar.gz +.DS_Store diff --git a/image/runtime-node16/Dockerfile b/image/runtime-node16/Dockerfile new file mode 100644 index 0000000..f1e4d51 --- /dev/null +++ b/image/runtime-node16/Dockerfile @@ -0,0 +1,21 @@ +FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:system-alinux3 +LABEL MAINTAINER="tianjun@odboy.cn" +ENV TimeZone=Asia/Shanghai +ENV NODE_HOME=/usr/local/node +ENV PATH="${NODE_HOME}/bin:$PATH" +WORKDIR /home/admin +# https://mirrors.aliyun.com/nodejs-release/v16.20.2/node-v16.20.2-linux-x64.tar.gz(官方源 https://nodejs.org/dist/) +# 由 build.sh 预先下载到本目录;解包后即为 node-v16.20.2-linux-x64/ 目录 +ADD node-v16.20.2-linux-x64.tar.gz /usr/local/ +RUN set -e && yum install \ + libatomic \ + ca-certificates \ + sysstat \ + net-tools -y; \ + mv /usr/local/node-v16.20.2-linux-x64 ${NODE_HOME}; \ + chmod +x ${NODE_HOME}/bin/*; \ + node -v; \ + npm -v; + +# 全局 npm 源走阿里云(npmmirror),与 runtime-python310 的 pip.conf 对应 +COPY npmrc /root/.npmrc diff --git a/image/runtime-node16/build.sh b/image/runtime-node16/build.sh new file mode 100755 index 0000000..fd313a6 --- /dev/null +++ b/image/runtime-node16/build.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# 先下载 Node 二进制包到当前目录,再基于本地文件构建镜像 +set -euo pipefail +cd "$(dirname "$0")" + +VERSION=16.20.2 +PKG=node-v${VERSION}-linux-x64.tar.gz +URL=https://mirrors.aliyun.com/nodejs-release/v${VERSION}/${PKG} +# 镜像站不可达时的官方源 +FALLBACK=https://nodejs.org/dist/v${VERSION}/${PKG} + +if [ ! -f "${PKG}" ]; then + curl -fL -o "${PKG}" "${URL}" || curl -fL -o "${PKG}" "${FALLBACK}" +fi + +IMAGE=registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-node16 +docker build -t "${IMAGE}" . +docker push "${IMAGE}" diff --git a/image/runtime-node16/npmrc b/image/runtime-node16/npmrc new file mode 100644 index 0000000..311de47 --- /dev/null +++ b/image/runtime-node16/npmrc @@ -0,0 +1,4 @@ +# 与 runtime-python310 的 ~/.pip/pip.conf 对应:全局 .npmrc,镜像内 npm 默认走阿里云源 +registry=https://registry.npmmirror.com +# 下载原生模块 / electron 等二进制时也走阿里云 +disturl=https://npmmirror.com/mirrors/node diff --git a/image/runtime-node18/.dockerignore b/image/runtime-node18/.dockerignore new file mode 100644 index 0000000..94992bf --- /dev/null +++ b/image/runtime-node18/.dockerignore @@ -0,0 +1,5 @@ +# 由 build.sh 预下载的 Node 压缩包经 ADD 解压进镜像, +# ADD 的源文件必须在构建上下文内,因此 *.tar.gz 不能在这里忽略 +build.sh +.git/ +.DS_Store diff --git a/image/runtime-node18/.gitignore b/image/runtime-node18/.gitignore new file mode 100644 index 0000000..9a1bb28 --- /dev/null +++ b/image/runtime-node18/.gitignore @@ -0,0 +1,3 @@ +# 构建产物 / 本地缓存 +*.tar.gz +.DS_Store diff --git a/image/runtime-node18/Dockerfile b/image/runtime-node18/Dockerfile new file mode 100644 index 0000000..f37b527 --- /dev/null +++ b/image/runtime-node18/Dockerfile @@ -0,0 +1,21 @@ +FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:system-alinux3 +LABEL MAINTAINER="tianjun@odboy.cn" +ENV TimeZone=Asia/Shanghai +ENV NODE_HOME=/usr/local/node +ENV PATH="${NODE_HOME}/bin:$PATH" +WORKDIR /home/admin +# https://mirrors.aliyun.com/nodejs-release/v18.20.8/node-v18.20.8-linux-x64.tar.gz(官方源 https://nodejs.org/dist/) +# 由 build.sh 预先下载到本目录;解包后即为 node-v18.20.8-linux-x64/ 目录 +ADD node-v18.20.8-linux-x64.tar.gz /usr/local/ +RUN set -e && yum install \ + libatomic \ + ca-certificates \ + sysstat \ + net-tools -y; \ + mv /usr/local/node-v18.20.8-linux-x64 ${NODE_HOME}; \ + chmod +x ${NODE_HOME}/bin/*; \ + node -v; \ + npm -v; + +# 全局 npm 源走阿里云(npmmirror),与 runtime-python310 的 pip.conf 对应 +COPY npmrc /root/.npmrc diff --git a/image/runtime-node18/build.sh b/image/runtime-node18/build.sh new file mode 100755 index 0000000..dd6534c --- /dev/null +++ b/image/runtime-node18/build.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# 先下载 Node 二进制包到当前目录,再基于本地文件构建镜像 +set -euo pipefail +cd "$(dirname "$0")" + +VERSION=18.20.8 +PKG=node-v${VERSION}-linux-x64.tar.gz +URL=https://mirrors.aliyun.com/nodejs-release/v${VERSION}/${PKG} +# 镜像站不可达时的官方源 +FALLBACK=https://nodejs.org/dist/v${VERSION}/${PKG} + +if [ ! -f "${PKG}" ]; then + curl -fL -o "${PKG}" "${URL}" || curl -fL -o "${PKG}" "${FALLBACK}" +fi + +IMAGE=registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-node18 +docker build -t "${IMAGE}" . +docker push "${IMAGE}" diff --git a/image/runtime-node18/npmrc b/image/runtime-node18/npmrc new file mode 100644 index 0000000..311de47 --- /dev/null +++ b/image/runtime-node18/npmrc @@ -0,0 +1,4 @@ +# 与 runtime-python310 的 ~/.pip/pip.conf 对应:全局 .npmrc,镜像内 npm 默认走阿里云源 +registry=https://registry.npmmirror.com +# 下载原生模块 / electron 等二进制时也走阿里云 +disturl=https://npmmirror.com/mirrors/node diff --git a/image/runtime-node20/.dockerignore b/image/runtime-node20/.dockerignore new file mode 100644 index 0000000..94992bf --- /dev/null +++ b/image/runtime-node20/.dockerignore @@ -0,0 +1,5 @@ +# 由 build.sh 预下载的 Node 压缩包经 ADD 解压进镜像, +# ADD 的源文件必须在构建上下文内,因此 *.tar.gz 不能在这里忽略 +build.sh +.git/ +.DS_Store diff --git a/image/runtime-node20/.gitignore b/image/runtime-node20/.gitignore new file mode 100644 index 0000000..9a1bb28 --- /dev/null +++ b/image/runtime-node20/.gitignore @@ -0,0 +1,3 @@ +# 构建产物 / 本地缓存 +*.tar.gz +.DS_Store diff --git a/image/runtime-node20/Dockerfile b/image/runtime-node20/Dockerfile new file mode 100644 index 0000000..120f5e6 --- /dev/null +++ b/image/runtime-node20/Dockerfile @@ -0,0 +1,21 @@ +FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:system-alinux3 +LABEL MAINTAINER="tianjun@odboy.cn" +ENV TimeZone=Asia/Shanghai +ENV NODE_HOME=/usr/local/node +ENV PATH="${NODE_HOME}/bin:$PATH" +WORKDIR /home/admin +# https://mirrors.aliyun.com/nodejs-release/v20.20.2/node-v20.20.2-linux-x64.tar.gz(官方源 https://nodejs.org/dist/) +# 由 build.sh 预先下载到本目录;解包后即为 node-v20.20.2-linux-x64/ 目录 +ADD node-v20.20.2-linux-x64.tar.gz /usr/local/ +RUN set -e && yum install \ + libatomic \ + ca-certificates \ + sysstat \ + net-tools -y; \ + mv /usr/local/node-v20.20.2-linux-x64 ${NODE_HOME}; \ + chmod +x ${NODE_HOME}/bin/*; \ + node -v; \ + npm -v; + +# 全局 npm 源走阿里云(npmmirror),与 runtime-python310 的 pip.conf 对应 +COPY npmrc /root/.npmrc diff --git a/image/runtime-node20/build.sh b/image/runtime-node20/build.sh new file mode 100755 index 0000000..dedc96d --- /dev/null +++ b/image/runtime-node20/build.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# 先下载 Node 二进制包到当前目录,再基于本地文件构建镜像 +set -euo pipefail +cd "$(dirname "$0")" + +VERSION=20.20.2 +PKG=node-v${VERSION}-linux-x64.tar.gz +URL=https://mirrors.aliyun.com/nodejs-release/v${VERSION}/${PKG} +# 镜像站不可达时的官方源 +FALLBACK=https://nodejs.org/dist/v${VERSION}/${PKG} + +if [ ! -f "${PKG}" ]; then + curl -fL -o "${PKG}" "${URL}" || curl -fL -o "${PKG}" "${FALLBACK}" +fi + +IMAGE=registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-node20 +docker build -t "${IMAGE}" . +docker push "${IMAGE}" diff --git a/image/runtime-node20/npmrc b/image/runtime-node20/npmrc new file mode 100644 index 0000000..311de47 --- /dev/null +++ b/image/runtime-node20/npmrc @@ -0,0 +1,4 @@ +# 与 runtime-python310 的 ~/.pip/pip.conf 对应:全局 .npmrc,镜像内 npm 默认走阿里云源 +registry=https://registry.npmmirror.com +# 下载原生模块 / electron 等二进制时也走阿里云 +disturl=https://npmmirror.com/mirrors/node diff --git a/image/runtime-node22/.dockerignore b/image/runtime-node22/.dockerignore new file mode 100644 index 0000000..94992bf --- /dev/null +++ b/image/runtime-node22/.dockerignore @@ -0,0 +1,5 @@ +# 由 build.sh 预下载的 Node 压缩包经 ADD 解压进镜像, +# ADD 的源文件必须在构建上下文内,因此 *.tar.gz 不能在这里忽略 +build.sh +.git/ +.DS_Store diff --git a/image/runtime-node22/.gitignore b/image/runtime-node22/.gitignore new file mode 100644 index 0000000..9a1bb28 --- /dev/null +++ b/image/runtime-node22/.gitignore @@ -0,0 +1,3 @@ +# 构建产物 / 本地缓存 +*.tar.gz +.DS_Store diff --git a/image/runtime-node22/Dockerfile b/image/runtime-node22/Dockerfile new file mode 100644 index 0000000..84879e4 --- /dev/null +++ b/image/runtime-node22/Dockerfile @@ -0,0 +1,21 @@ +FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:system-alinux3 +LABEL MAINTAINER="tianjun@odboy.cn" +ENV TimeZone=Asia/Shanghai +ENV NODE_HOME=/usr/local/node +ENV PATH="${NODE_HOME}/bin:$PATH" +WORKDIR /home/admin +# https://mirrors.aliyun.com/nodejs-release/v22.23.5/node-v22.23.5-linux-x64.tar.gz(官方源 https://nodejs.org/dist/) +# 由 build.sh 预先下载到本目录;解包后即为 node-v22.23.5-linux-x64/ 目录 +ADD node-v22.23.5-linux-x64.tar.gz /usr/local/ +RUN set -e && yum install \ + libatomic \ + ca-certificates \ + sysstat \ + net-tools -y; \ + mv /usr/local/node-v22.23.5-linux-x64 ${NODE_HOME}; \ + chmod +x ${NODE_HOME}/bin/*; \ + node -v; \ + npm -v; + +# 全局 npm 源走阿里云(npmmirror),与 runtime-python310 的 pip.conf 对应 +COPY npmrc /root/.npmrc diff --git a/image/runtime-node22/build.sh b/image/runtime-node22/build.sh new file mode 100755 index 0000000..e0a551b --- /dev/null +++ b/image/runtime-node22/build.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# 先下载 Node 二进制包到当前目录,再基于本地文件构建镜像 +set -euo pipefail +cd "$(dirname "$0")" + +VERSION=22.23.5 +PKG=node-v${VERSION}-linux-x64.tar.gz +URL=https://mirrors.aliyun.com/nodejs-release/v${VERSION}/${PKG} +# 镜像站不可达时的官方源 +FALLBACK=https://nodejs.org/dist/v${VERSION}/${PKG} + +if [ ! -f "${PKG}" ]; then + curl -fL -o "${PKG}" "${URL}" || curl -fL -o "${PKG}" "${FALLBACK}" +fi + +IMAGE=registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-node22 +docker build -t "${IMAGE}" . +docker push "${IMAGE}" diff --git a/image/runtime-node22/npmrc b/image/runtime-node22/npmrc new file mode 100644 index 0000000..311de47 --- /dev/null +++ b/image/runtime-node22/npmrc @@ -0,0 +1,4 @@ +# 与 runtime-python310 的 ~/.pip/pip.conf 对应:全局 .npmrc,镜像内 npm 默认走阿里云源 +registry=https://registry.npmmirror.com +# 下载原生模块 / electron 等二进制时也走阿里云 +disturl=https://npmmirror.com/mirrors/node diff --git a/image/runtime-node26/.dockerignore b/image/runtime-node26/.dockerignore new file mode 100644 index 0000000..94992bf --- /dev/null +++ b/image/runtime-node26/.dockerignore @@ -0,0 +1,5 @@ +# 由 build.sh 预下载的 Node 压缩包经 ADD 解压进镜像, +# ADD 的源文件必须在构建上下文内,因此 *.tar.gz 不能在这里忽略 +build.sh +.git/ +.DS_Store diff --git a/image/runtime-node26/.gitignore b/image/runtime-node26/.gitignore new file mode 100644 index 0000000..9a1bb28 --- /dev/null +++ b/image/runtime-node26/.gitignore @@ -0,0 +1,3 @@ +# 构建产物 / 本地缓存 +*.tar.gz +.DS_Store diff --git a/image/runtime-node26/Dockerfile b/image/runtime-node26/Dockerfile new file mode 100644 index 0000000..60f694e --- /dev/null +++ b/image/runtime-node26/Dockerfile @@ -0,0 +1,21 @@ +FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:system-alinux3 +LABEL MAINTAINER="tianjun@odboy.cn" +ENV TimeZone=Asia/Shanghai +ENV NODE_HOME=/usr/local/node +ENV PATH="${NODE_HOME}/bin:$PATH" +WORKDIR /home/admin +# https://mirrors.aliyun.com/nodejs-release/v26.13.1/node-v26.13.1-linux-x64.tar.gz(官方源 https://nodejs.org/dist/) +# 由 build.sh 预先下载到本目录;解包后即为 node-v26.13.1-linux-x64/ 目录 +ADD node-v26.13.1-linux-x64.tar.gz /usr/local/ +RUN set -e && yum install \ + libatomic \ + ca-certificates \ + sysstat \ + net-tools -y; \ + mv /usr/local/node-v26.13.1-linux-x64 ${NODE_HOME}; \ + chmod +x ${NODE_HOME}/bin/*; \ + node -v; \ + npm -v; + +# 全局 npm 源走阿里云(npmmirror),与 runtime-python310 的 pip.conf 对应 +COPY npmrc /root/.npmrc diff --git a/image/runtime-node26/build.sh b/image/runtime-node26/build.sh new file mode 100755 index 0000000..29d8705 --- /dev/null +++ b/image/runtime-node26/build.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# 先下载 Node 二进制包到当前目录,再基于本地文件构建镜像 +set -euo pipefail +cd "$(dirname "$0")" + +VERSION=26.13.1 +PKG=node-v${VERSION}-linux-x64.tar.gz +URL=https://mirrors.aliyun.com/nodejs-release/v${VERSION}/${PKG} +# 镜像站不可达时的官方源 +FALLBACK=https://nodejs.org/dist/v${VERSION}/${PKG} + +if [ ! -f "${PKG}" ]; then + curl -fL -o "${PKG}" "${URL}" || curl -fL -o "${PKG}" "${FALLBACK}" +fi + +IMAGE=registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-node26 +docker build -t "${IMAGE}" . +docker push "${IMAGE}" diff --git a/image/runtime-node26/npmrc b/image/runtime-node26/npmrc new file mode 100644 index 0000000..311de47 --- /dev/null +++ b/image/runtime-node26/npmrc @@ -0,0 +1,4 @@ +# 与 runtime-python310 的 ~/.pip/pip.conf 对应:全局 .npmrc,镜像内 npm 默认走阿里云源 +registry=https://registry.npmmirror.com +# 下载原生模块 / electron 等二进制时也走阿里云 +disturl=https://npmmirror.com/mirrors/node