Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
FROM neosmemo/memos:stable
|
2 |
RUN apk update && apk upgrade && apk add git wget nodejs npm
|
3 |
-
RUN chmod -R u+rwx,g+rwx,o+rwx /var/opt
|
4 |
RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
|
5 |
RUN mkdir -p /.npm
|
6 |
RUN chmod -R u+rwx,g+rwx,o+rwx /.npm
|
@@ -9,4 +9,5 @@ ENV localrepoPath /var/opt/memos
|
|
9 |
ENTRYPOINT export Interval=10000 &&\
|
10 |
(while true;do git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal && break || sleep 5;done) &&\
|
11 |
cd /tmp/gitpipelocal && npm install &&\
|
|
|
12 |
(node /tmp/gitpipelocal/index.js & sleep 5 && cd /usr/local/memos && ./memos )
|
|
|
1 |
FROM neosmemo/memos:stable
|
2 |
RUN apk update && apk upgrade && apk add git wget nodejs npm
|
3 |
+
RUN rm -rf /var/opt/memos && mkdir -p /var/opt/memos && chmod -R u+rwx,g+rwx,o+rwx /var/opt
|
4 |
RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
|
5 |
RUN mkdir -p /.npm
|
6 |
RUN chmod -R u+rwx,g+rwx,o+rwx /.npm
|
|
|
9 |
ENTRYPOINT export Interval=10000 &&\
|
10 |
(while true;do git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal && break || sleep 5;done) &&\
|
11 |
cd /tmp/gitpipelocal && npm install &&\
|
12 |
+
(while true;do git clone $remoteUrlWithToken $localrepoPath && break || sleep 5;done) &&\
|
13 |
(node /tmp/gitpipelocal/index.js & sleep 5 && cd /usr/local/memos && ./memos )
|