edwagbb commited on
Commit
014ab59
·
verified ·
1 Parent(s): 8d83aca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -3,7 +3,10 @@ ENV PORT 7860
3
  RUN apk update && apk upgrade && apk add git wget
4
  RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
5
  ENV localrepoPath /tmp/okok
6
- CMD export Interval=10000 &&\
 
 
 
7
  git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
8
  ls /tmp/gitpipelocal &&\
9
  cd /tmp/gitpipelocal && npm install &&\
@@ -12,4 +15,9 @@ CMD export Interval=10000 &&\
12
  npm install &&\
13
  export func_dir=$localrepoPath/functions &&\
14
  export static_dir=$localrepoPath/static &&\
15
- (node index.js & node /tmp/gitpipelocal/index.js)
 
 
 
 
 
 
3
  RUN apk update && apk upgrade && apk add git wget
4
  RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
5
  ENV localrepoPath /tmp/okok
6
+
7
+ COPY <<EOF /start.sh
8
+ while true; do
9
+ export Interval=10000 &&\
10
  git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
11
  ls /tmp/gitpipelocal &&\
12
  cd /tmp/gitpipelocal && npm install &&\
 
15
  npm install &&\
16
  export func_dir=$localrepoPath/functions &&\
17
  export static_dir=$localrepoPath/static &&\
18
+ (node index.js & node /tmp/gitpipelocal/index.js)
19
+ done
20
+ EOF
21
+ RUN chmod -R u+rwx,g+rwx,o+rwx /start.sh
22
+
23
+ CMD /start.sh