浏览代码

enhance: use yarn config

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

+ 1 - 1
Dockerfile

@@ -20,7 +20,7 @@ WORKDIR /data
 
 RUN git clone -b master https://github.com/logseq/logseq.git .
 
-RUN printf "%s\n" "network-timeout 240000" >> ~/.yarnrc && yarn install
+RUN yarn config set network-timeout 240000 -g && yarn install
 
 # Build static resources
 RUN  yarn release