Node 项目对基础镜像的定制:
- yarn
$HOME/.yarn/bin/yarn
- pm2@2.5.0
$ docker build -t="node-deploy:8.0.0-alpine-onbuild" .
$ docker tag node-deploy:7.10.0-alpine-onbuild lanvige/node-deploy:8.0.0-alpine-onbuild
$ docker push lanvige/node-deploy:8.0.0-alpine-onbuild
$ docker build -t="node-deploy:8.0.0" .
$ docker tag node-deploy:8.0.0 lanvige/node-deploy:8.0.0
$ docker push lanvige/node-deploy:8.0.0