当前位置:   article > 正文

开源 cryptpad 一个开源的协作文档编辑器_cryptpad 下载

cryptpad 下载

docker run -d -p 3000:3000 -e DOMAIN=https://cryptpad.test.com --name cryptpad chaosbunker/cryptpad-docker

https://github.com/xwiki-labs/cryptpad

没有简体中文的,感觉很不爽,图片、pdf和markdown可以在线看,但是office的不行。

 

Dockerfile

  1. FROM alpine:3.9
  2. RUN apk add --no-cache -U su-exec tini
  3. ENTRYPOINT ["/sbin/tini", "--"]
  4. ARG CRYPTPAD_VERSION=2.16.0
  5. ENV UID=791 GID=791
  6. ENV DOMAIN=https://localhost:3000/
  7. EXPOSE 3000
  8. VOLUME /cryptpad/datastore /cryptpad/customize
  9. WORKDIR /cryptpad
  10. COPY run.sh /usr/local/bin/run.sh
  11. COPY config.js /cryptpad/config.js
  12. RUN set -xe \
  13. && apk add --no-cache nodejs \
  14. && apk add --no-cache --virtual .build-deps git tar nodejs-npm ca-certificates openssl python2 make g++ \
  15. && mkdir -p /cryptpad/pins \
  16. && wget -qO- https://github.com/xwiki-labs/cryptpad/archive/${CRYPTPAD_VERSION}.tar.gz | tar xz --strip 1 \
  17. && npm config set unsafe-perm true \
  18. && npm install \
  19. && npm install -g bower \
  20. && bower install --allow-root \
  21. && chmod +x /usr/local/bin/run.sh \
  22. && npm uninstall -g bower \
  23. && apk del .build-deps
  24. CMD ["run.sh"]

Dockerfile:

  1. FROM node:latest
  2. MAINTAINER Arno0x0x - https://twitter.com/Arno0x0x
  3. ENV SOURCE_URL="https://github.com/xwiki-labs/cryptpad"
  4. # Install Cryptpad from the GitHub repo, master branch
  5. RUN git clone ${SOURCE_URL} \
  6. && cd cryptpad \
  7. && npm install \
  8. && npm install -g bower \
  9. && bower install --allow-root
  10. # Copies the config.js, with logging to stdout set to true
  11. COPY config.js /cryptpad/
  12. WORKDIR /cryptpad
  13. EXPOSE 3000
  14. ENTRYPOINT ["node"]
  15. CMD ["./server.js"]

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/662372
推荐阅读
相关标签
  

闽ICP备14008679号