Browse Source

修改dockerfile

yangc 7 years ago
parent
commit
84344fee8e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Dockerfile

+ 4 - 3
Dockerfile

@@ -8,9 +8,10 @@ COPY . /app
 
 RUN chmod +x run.sh
 
-RUN npm install yarn -g
-RUN npm install -g node-gyp
-RUN npm install
+RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
+#RUN cnpm install -g yarn
+RUN cnpm install -g node-gyp
+RUN cnpm install
 
 #RUN export SASS_BINARY_PATH=linux_musl-x64-57_binding.node
 #RUN export PATH=$PATH:$SASS_BINARY_PATH