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:v1
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
Content type
Image
Digest
Size
252 MB
Last updated
over 6 years ago
docker pull rdmix/node