Merge branch 'soon' into staging
This commit is contained in:
commit
bad58c6dc8
@ -8,13 +8,13 @@ RUN apk add --no-cache git tini \
|
|||||||
&& npm install -g bower \
|
&& npm install -g bower \
|
||||||
&& bower install --allow-root
|
&& bower install --allow-root
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000 3001
|
||||||
|
|
||||||
VOLUME /cryptpad/datastore
|
VOLUME /cryptpad/datastore
|
||||||
VOLUME /cryptpad/customize
|
VOLUME /cryptpad/customize
|
||||||
|
|
||||||
ENV USE_SSL=false
|
ENV USE_SSL=false
|
||||||
ENV STORAGE='./storage/file'
|
ENV STORAGE=\'./storage/file\'
|
||||||
ENV LOG_TO_STDOUT=true
|
ENV LOG_TO_STDOUT=true
|
||||||
|
|
||||||
CMD ["/sbin/tini", "--", "/cryptpad/container-start.sh"]
|
CMD ["/sbin/tini", "--", "/cryptpad/container-start.sh"]
|
||||||
|
|||||||
25
Dockerfile.arm64
Normal file
25
Dockerfile.arm64
Normal file
@ -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 3001
|
||||||
|
|
||||||
|
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"]
|
||||||
@ -24,5 +24,5 @@ sedeasy() {
|
|||||||
[ -n "$LOG_TO_STDOUT" ] && echo "Logging to stdout: $LOG_TO_STDOUT" \
|
[ -n "$LOG_TO_STDOUT" ] && echo "Logging to stdout: $LOG_TO_STDOUT" \
|
||||||
&& sedeasy "logToStdout: [^,]*," "logToStdout: ${LOG_TO_STDOUT}," customize/config.js
|
&& sedeasy "logToStdout: [^,]*," "logToStdout: ${LOG_TO_STDOUT}," customize/config.js
|
||||||
|
|
||||||
|
export FRESH=1
|
||||||
exec node ./server.js
|
exec node ./server.js
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user