commit
09db238b96
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,11 @@ COPY . /cryptpad
|
||||||
RUN sed -i "s@//httpAddress: '::'@httpAddress: '0.0.0.0'@" /cryptpad/config/config.example.js
|
RUN sed -i "s@//httpAddress: '::'@httpAddress: '0.0.0.0'@" /cryptpad/config/config.example.js
|
||||||
RUN sed -i "s@installMethod: 'unspecified'@installMethod: 'docker'@" /cryptpad/config/config.example.js
|
RUN sed -i "s@installMethod: 'unspecified'@installMethod: 'docker'@" /cryptpad/config/config.example.js
|
||||||
|
|
||||||
|
# Install wget for healthcheck
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y wget && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install --production \
|
RUN npm install --production \
|
||||||
&& npm run install:components
|
&& npm run install:components
|
||||||
|
@ -48,6 +53,9 @@ VOLUME /cryptpad/datastore
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/cryptpad/docker-entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/cryptpad/docker-entrypoint.sh"]
|
||||||
|
|
||||||
|
# Healthcheck
|
||||||
|
HEALTHCHECK --interval=1m CMD wget --no-verbose --tries=1 http://localhost:3000/ -q -O /dev/null || exit 1
|
||||||
|
|
||||||
# Ports
|
# Ports
|
||||||
EXPOSE 3000 3001 3003
|
EXPOSE 3000 3001 3003
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue