dockerfile中设置npm淘宝镜像地址
FROM node:14.9.0 AS builder
RUN npm config set registry https://registry.npm.taobao.org
RUN npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
RUN npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
RUN npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/
WORKDIR /usr
COPY ./ /usr
RUN npm install && \
npm run build
FROM nginx:latest
COPY --from=builder /usr/dist /usr/nginx/html/