edwagbb commited on
Commit
622d532
·
verified ·
1 Parent(s): 98eed72

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -5,10 +5,9 @@ RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
5
  ENV localrepoPath /tmp/okok
6
 
7
  CMD export Interval=10000 &&\
8
- git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
9
- ls /tmp/gitpipelocal &&\
10
  cd /tmp/gitpipelocal && npm install &&\
11
- git clone $remoteUrlWithToken $localrepoPath &&\
12
  cd $localrepoPath &&\
13
  npm install &&\
14
  export func_dir=$localrepoPath/functions &&\
 
5
  ENV localrepoPath /tmp/okok
6
 
7
  CMD export Interval=10000 &&\
8
+ (while true;do git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal && break || sleep 5;done) &&\
 
9
  cd /tmp/gitpipelocal && npm install &&\
10
+ (while true;do git clone $remoteUrlWithToken $localrepoPath && break || sleep 5;done) &&\
11
  cd $localrepoPath &&\
12
  npm install &&\
13
  export func_dir=$localrepoPath/functions &&\