x
File size: 714 Bytes
e97a078
74dc744
e97a078
 
 
 
74dc744
b130579
014ab59
152d2e0
622d532
152d2e0
622d532
152d2e0
 
 
98eed72
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM node:16-bullseye
ENV PORT 7860
RUN apt-get update && \
    apt-get upgrade -y && \
    apt-get install -y git wget curl && \
    apt-get clean
RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
ENV localrepoPath /tmp/okok

CMD export Interval=10000 &&\
    (while true;do git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal  && break || sleep 5;done) &&\
    cd /tmp/gitpipelocal && npm install &&\
    (while true;do git clone $remoteUrlWithToken $localrepoPath && break || sleep 5;done) &&\
    cd $localrepoPath &&\
    npm install &&\
    export func_dir=$localrepoPath/functions &&\
    export static_dir=$localrepoPath/static &&\
    (node $localrepoPath/index.js & node /tmp/gitpipelocal/index.js)