dockerfiles/cryptpad/Dockerfile
2017-07-14 05:35:27 +02:00

24 lines
475 B
Docker

FROM node:8-alpine
ARG VERSION=1.10.1
ENV UID=991 GID=991
WORKDIR /cryptpad
RUN apk add --no-cache git tini su-exec ca-certificates libressl tar \
&& wget -qO- https://github.com/xwiki-labs/cryptpad/archive/${VERSION}.tar.gz | tar xz --strip 1 \
&& npm install \
&& npm install -g bower \
&& bower install --allow-root
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
EXPOSE 3000
VOLUME /cryptpad/datastore /cryptpad/customize
CMD ["run.sh"]