From b8a745832dca59b10a0bb3f54a3dad72bbfc5bc8 Mon Sep 17 00:00:00 2001 From: mcrosson Date: Mon, 16 Jul 2018 17:16:22 +0000 Subject: [PATCH] Add Dockerfile for arm64 support --- Dockerfile.arm64 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile.arm64 diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 new file mode 100644 index 000000000..77842d163 --- /dev/null +++ b/Dockerfile.arm64 @@ -0,0 +1,25 @@ +FROM arm64v8/node:6 + +COPY . /cryptpad +WORKDIR /cryptpad + +RUN npm config set unsafe-perm true + +ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini-static-arm64 /sbin/tini +RUN chmod a+x /sbin/tini + +RUN apt install -y git \ + && npm install --production \ + && npm install -g bower \ + && bower install --allow-root + +EXPOSE 3000 + +VOLUME /cryptpad/datastore +VOLUME /cryptpad/customize + +ENV USE_SSL=false +ENV STORAGE='./storage/file' +ENV LOG_TO_STDOUT=true + +CMD ["/sbin/tini", "--", "/cryptpad/container-start.sh"]