Update Dockerfile
Browse files- Dockerfile +0 -12
Dockerfile
CHANGED
@@ -1,13 +1 @@
|
|
1 |
FROM neosmemo/memos:stable
|
2 |
-
USER root
|
3 |
-
RUN apk update && apk upgrade && apk add git wget nodejs npm
|
4 |
-
RUN mkdir -p /home/siyuan && chmod -R u+rwx,g+rwx,o+rwx /home/siyuan
|
5 |
-
RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
|
6 |
-
ENV localrepoPath /home/siyuan/SiYuan
|
7 |
-
|
8 |
-
USER 1000
|
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 && /usr/local/memos/memos )
|
|
|
1 |
FROM neosmemo/memos:stable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|