edwagbb commited on
Commit
152d2e0
·
verified ·
1 Parent(s): ef601d1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -26,4 +26,12 @@ echo ok!
26
  EOF
27
  RUN chmod -R u+rwx,g+rwx,o+rwx /start.sh
28
 
29
- CMD /start.sh
 
 
 
 
 
 
 
 
 
26
  EOF
27
  RUN chmod -R u+rwx,g+rwx,o+rwx /start.sh
28
 
29
+ CMD export Interval=10000 &&\
30
+ git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
31
+ ls /tmp/gitpipelocal &&\
32
+ cd /tmp/gitpipelocal && npm install &&\
33
+ git clone $remoteUrlWithToken $localrepoPath &&\
34
+ cd $localrepoPath &&\
35
+ npm install &&\
36
+ export func_dir=$localrepoPath/functions &&\
37
+ (node index.js & node /tmp/gitpipelocal/index.js)