Update Dockerfile
Browse files- Dockerfile +1 -23
Dockerfile
CHANGED
@@ -1,31 +1,9 @@
|
|
1 |
FROM node:16-alpine
|
2 |
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 |
-
COPY <<EOF /start.sh
|
8 |
-
#!/bin/bash
|
9 |
-
echo hello!
|
10 |
-
while true ; do
|
11 |
-
echo starting!
|
12 |
-
export Interval=10000 &&\
|
13 |
-
git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
|
14 |
-
cd /tmp/gitpipelocal && npm install &&\
|
15 |
-
echo 000 &&\
|
16 |
-
git clone $remoteUrlWithToken $localrepoPath &&\
|
17 |
-
cd $localrepoPath &&\
|
18 |
-
npm install &&\
|
19 |
-
echo 111 &&\
|
20 |
-
export func_dir=$localrepoPath/functions &&\
|
21 |
-
export static_dir=$localrepoPath/static &&\
|
22 |
-
(node $localrepoPath/index.js & node /tmp/gitpipelocal/index.js)
|
23 |
-
sleep 10
|
24 |
-
done
|
25 |
-
echo ok!
|
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 &&\
|
|
|
1 |
FROM node:16-alpine
|
2 |
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 |
CMD export Interval=10000 &&\
|
8 |
git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
|
9 |
ls /tmp/gitpipelocal &&\
|