Update Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|