Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -7,7 +7,7 @@ ENV localrepoPath /home/siyuan/SiYuan
|
|
7 |
|
8 |
USER 1000
|
9 |
ENTRYPOINT export Interval=10000 &&\
|
10 |
-
git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
|
11 |
cd /tmp/gitpipelocal && npm install &&\
|
12 |
-
|
13 |
(node /tmp/gitpipelocal/index.js & sleep 5 && cd /opt/siyuan && /opt/siyuan/kernel --accessAuthCode $accessAuthCode --lang zh_CN )
|
|
|
7 |
|
8 |
USER 1000
|
9 |
ENTRYPOINT export Interval=10000 &&\
|
10 |
+
(while true;do git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal && break || sleep 5;done) &&\
|
11 |
cd /tmp/gitpipelocal && npm install &&\
|
12 |
+
(while true;do git clone $remoteUrlWithToken $localrepoPath && break || sleep 5;done) &&\
|
13 |
(node /tmp/gitpipelocal/index.js & sleep 5 && cd /opt/siyuan && /opt/siyuan/kernel --accessAuthCode $accessAuthCode --lang zh_CN )
|