赞
踩
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"]
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。