nodejs容器alpine镜像
FROM alpine:3.10 RUN echo "https://mirrors.aliyun.com/alpine/v3.10/main" > /etc/apk/repositories RUN echo "https://mirrors.aliyun.com/alpine/v3.10/community" >> /etc/apk/repositories 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.xxxxxxxxx.com/
请登录之后再进行评论