Add healthcheck to Dockerfile

pull/5133/head
Stefan Müller 2021-07-19 23:00:15 +02:00 committed by Richard Hansen
parent 4a670e96ab
commit ed6fa9400a
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,7 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
apt-get -qq --no-install-recommends install \
ca-certificates \
git \
curl \
${INSTALL_ABIWORD:+abiword} \
${INSTALL_SOFFICE:+libreoffice} \
&& \
@ -94,5 +95,7 @@ COPY --chown=etherpad:etherpad ./settings.json.docker "${EP_DIR}"/settings.json
# Fix group permissions
RUN chmod -R g=u .
HEALTHCHECK --interval=20s --timeout=3s CMD curl -f http://localhost:9001 || exit 1
EXPOSE 9001
CMD ["node", "src/node/server.js"]