nodejs容器dockerfile
RUN set -x ; \ apk --no-cache upgrade ; \ apk --no-cache add \ bash \ curl \ grep \ tzdata \ nodejs \ npm \ ; \ rm -rf /var/cache/apk/* ; \ rm -rf /etc/logrotate.d/acpid ; \ cp -R /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ; \ echo 'Asia/Shanghai' > /etc/timezone ; \ npm config set registry https://registry.npm.taobao.org/ ; \ npm config set disturl https://npm.taobao.org/dist ; \ npm config set electron_mirror https://npm.taobao.org/mirrors/electron/ ; \ npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ ; \ npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/ ; \ npm install -g pm2 ; \ npm config set registry http://registry.cnpm.xxxxxx.com/
请登录之后再进行评论