edwagbb commited on
Commit
2164361
·
verified ·
1 Parent(s): 21c4ef3

Update Dockerfile

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