diff --git a/IoTSharp/Dockerfile_with_vue b/IoTSharp/Dockerfile_with_vue index 0727e7087f3b09f583db691ddf8248c4619042d8..643df319913682b6e44976bfd54dc8841c5d1908 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/"]