开源 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

FROM alpine:3.9
RUN apk add --no-cache -U su-exec tini
ENTRYPOINT ["/sbin/tini", "--"]

ARG CRYPTPAD_VERSION=2.16.0
ENV UID=791 GID=791
ENV DOMAIN=https://localhost:3000/

EXPOSE 3000
VOLUME /cryptpad/datastore /cryptpad/customize
WORKDIR /cryptpad

COPY run.sh /usr/local/bin/run.sh
COPY config.js /cryptpad/config.js

RUN set -xe \
    && apk add --no-cache nodejs \
    && apk add --no-cache --virtual .build-deps git tar nodejs-npm ca-certificates openssl python2 make g++ \
    && mkdir -p /cryptpad/pins \
    && wget -qO- https://github.com/xwiki-labs/cryptpad/archive/${CRYPTPAD_VERSION}.tar.gz | tar xz --strip 1 \
    && npm config set unsafe-perm true \
    && npm install \
    && npm install -g bower \
    && bower install --allow-root \
    && chmod +x /usr/local/bin/run.sh \
    && npm uninstall -g bower \
    && apk del .build-deps

CMD ["run.sh"]

Dockerfile:

FROM node:latest
MAINTAINER Arno0x0x - https://twitter.com/Arno0x0x

ENV SOURCE_URL="https://github.com/xwiki-labs/cryptpad"

# Install Cryptpad from the GitHub repo, master branch
RUN git clone ${SOURCE_URL} \
   && cd cryptpad \
   && npm install \
   && npm install -g bower \
   && bower install --allow-root

# Copies the config.js, with logging to stdout set to true
COPY config.js /cryptpad/

WORKDIR /cryptpad

EXPOSE 3000

ENTRYPOINT ["node"]
CMD ["./server.js"]

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值