添加Node Sass源

This commit is contained in:
yaziming
2020-06-23 12:23:18 +08:00
parent 14380c1fb6
commit 73b1a1a9f0
2 changed files with 2 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ FROM node:latest AS frontend-build
ADD ./frontend /app
WORKDIR /app
ENV SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/
# install frontend
RUN yarn config set registry https://registry.npm.taobao.org && \
yarn install && yarn run build:prod

View File

@@ -1,4 +1,5 @@
FROM node:latest
WORKDIR frontend
ENV SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/
RUN npm config set registry "http://registry.npm.taobao.org"