32 lines
557 B
Docker
Raw Normal View History

2017-07-14 05:42:12 +02:00
FROM alpine:3.6
2017-07-14 05:27:34 +02:00
2017-12-04 14:36:45 +01:00
ARG VERSION=1.20.0
2017-07-14 05:27:34 +02:00
2017-07-14 05:30:27 +02:00
ENV UID=991 GID=991
2017-07-14 05:27:34 +02:00
WORKDIR /cryptpad
2017-07-14 05:42:12 +02:00
RUN apk -U add --no-cache \
git \
tini \
su-exec \
ca-certificates \
libressl \
tar \
nodejs-current \
nodejs-current-npm \
2017-07-14 05:27:34 +02:00
&& 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
2017-07-14 05:35:27 +02:00
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
2017-07-14 05:27:34 +02:00
EXPOSE 3000
2017-07-14 05:30:27 +02:00
VOLUME /cryptpad/datastore /cryptpad/customize
2017-07-14 05:27:34 +02:00
2017-07-14 05:35:27 +02:00
CMD ["run.sh"]