use project build, only nodejs lts、yarn, size:60mb left
993
node:v12.17.0
npm:6.14.4
yarn:1.22.4
国内地址:registry.cn-beijing.aliyuncs.com/rdmix/node-build:v1
node:v12.17.0
npm:6.14.4
yarn:1.22.4
国内镜像:registry.cn-beijing.aliyuncs.com/rdmix/node-run:v2
FROM registry.cn-beijing.aliyuncs.com/rdmix/node-build:v1 AS builder
COPY package.json package-lock.json ./
RUN npm install --production
FROM registry.cn-beijing.aliyuncs.com/rdmix/node-run:v1
WORKDIR /home/app
COPY --from=builder /home/app/node_modules ./node_modules
COPY . .
CMD [ "pm2-runtime", "start", "app.js" ]
国内地址:registry.cn-beijing.aliyuncs.com/rdmix/node-build:v1
国内镜像:registry.cn-beijing.aliyuncs.com/rdmix/node-run:v1
增加 sharp 上海时区 registry.cn-hongkong.aliyuncs.com/rdmix/node-base-run:v1
Content type
Image
Digest
Size
23.5 MB
Last updated
over 5 years ago
docker pull rdmix/node-build