浏览代码

处理发布问题

wangcz 6 年之前
父节点
当前提交
f0ff3987cf
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Dockerfile

+ 3 - 2
Dockerfile

@@ -6,6 +6,7 @@ RUN chmod +x run.sh
 #RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
 #RUN cnpm install -g node-gyp
 #RUN cnpm install -g yarn
-RUN yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass -g
-RUN yarn
+RUN rm -f /usr/local/bin/yarn
+RUN /opt/yarn-v1.5.1/bin/yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass -g
+RUN /opt/yarn-v1.5.1/bin/yarn
 CMD [ "bash", "run.sh" ]