feat: 新增 compile-node 镜像(16/18/20/22/26),runtime-node 改基于 runtime-python315
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
build.sh
|
||||
.git/
|
||||
.DS_Store
|
||||
@@ -0,0 +1,3 @@
|
||||
build.sh
|
||||
.git/
|
||||
.DS_Store
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-node16
|
||||
LABEL MAINTAINER="tianjun@odboy.cn"
|
||||
ENV TimeZone=Asia/Shanghai
|
||||
WORKDIR /home/admin
|
||||
# npm 源由基础镜像的 /usr/local/node/etc/npmrc 统一指向阿里云;corepack 随 Node 16.9+ 自带,便于 pnpm / yarn
|
||||
RUN set -e && npm config get registry; \
|
||||
corepack enable;
|
||||
# node-gyp 的 python3 已由基础镜像(runtime-python315)提供;这里只补 gcc/gcc-c++/make 编 C/C++ 扩展
|
||||
RUN set -e && yum install \
|
||||
make \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
git -y; \
|
||||
node -v; \
|
||||
npm -v;
|
||||
Reference in New Issue
Block a user