memos / Dockerfile
edwagbb's picture
Update Dockerfile
c7d2fb4 verified
raw
history blame
605 Bytes
FROM b3log/siyuan
USER root
RUN apk update && apk upgrade && apk add git wget nodejs npm
RUN mkdir -p /home/siyuan/SiYuan && chmod -R u+rwx,g+rwx,o+rwx /home/siyuan/SiYuan
RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
ENV localrepoPath /home/siyuan/SiYuan
USER 1000
ENTRYPOINT export Interval=10000 &&\
git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
cd /tmp/gitpipelocal && npm install &&\
git clone $remoteUrlWithToken $localrepoPath &&\
(node /tmp/gitpipelocal/index.js & sleep 5 && cd /opt/siyuan && /opt/siyuan/kernel --accessAuthCode $accessAuthCode --lang zh_CN )