From 0bdab543f2e6f71ad7ac5c0f6676d40a2349e8c5 Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Mon, 10 Oct 2022 19:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9vue=E7=89=88=E6=9C=AC=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4docker=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IoTSharp/Dockerfile_with_vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IoTSharp/Dockerfile_with_vue b/IoTSharp/Dockerfile_with_vue index 0727e708..643df319 100644 --- a/IoTSharp/Dockerfile_with_vue +++ b/IoTSharp/Dockerfile_with_vue @@ -29,7 +29,9 @@ RUN KEYRING=/usr/share/keyrings/nodesource.gpg && curl -fsSL https://deb.nodesou WORKDIR /src COPY ["IoTSharp/ClientAppVue/package.json", "IoTSharp/ClientAppVue/package.json"] -RUN npm install -g yarn && yarn add node-sass@4.14.1 --cwd ./IoTSharp/ClientAppVue/ && yarn install --cwd ./IoTSharp/ClientAppVue/ +RUN npm install -g yarn && yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g && \ + yarn config set registry https://registry.npm.taobao.org -g && \ + yarn add node-sass --cwd ./IoTSharp/ClientAppVue/ && yarn install --cwd ./IoTSharp/ClientAppVue/ COPY ["IoTSharp/IoTSharp.csproj", "IoTSharp/"] COPY ["IoTSharp.Contracts/IoTSharp.Contracts.csproj", "IoTSharp.Contracts/"] COPY ["IoTSharp.Data.Storage/IoTSharp.Data.Cassandra/IoTSharp.Data.Cassandra.csproj", "IoTSharp.Data.Storage/IoTSharp.Data.Cassandra/"] -- GitLab