From 03ad4cc73c9a2020270007c004d5c627b8cf5248 Mon Sep 17 00:00:00 2001 From: ibuler Date: Sun, 24 Apr 2022 09:31:29 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9639b7e27..c5c901c65 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ FROM node:10 as stage-build -ARG VERSION -ENV VERSION=$VERSION ARG NPM_REGISTRY="https://registry.npm.taobao.org" ENV NPM_REGISTY=$NPM_REGISTRY ARG SASS_BINARY_SITE="https://npm.taobao.org/mirrors/node-sass" @@ -15,6 +13,8 @@ COPY package.json yarn.lock /data/ RUN yarn install RUN npm rebuild node-sass +ARG VERSION +ENV VERSION=$VERSION ADD . /data RUN cd utils && bash -xieu build.sh build