FROM node:14-alpine LABEL maintainer="Loong" # 更换软件源 RUN cp -a /etc/apk/repositories /etc/apk/repositories.bak \ && sed -i "s@https://dl-cdn.alpinelinux.org/@https://mirrors.huaweicloud.com/@g" /etc/apk/repositories \ && apk update \ && apk add tzdata \ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone \ && apk del tzdata \ && apk add make cmake \ && npm config set registry=http://10.8.30.22:7000 \ && npm install --save webpack@3.12.0 yarn node-gyp babel-cli