Use curl for Docker HEALTHCHECK

This commit is contained in:
Wolfgang Ginolas 2024-04-09 11:51:06 +02:00 committed by wginolas
parent 5119901fb8
commit b058f76b45
1 changed files with 4 additions and 4 deletions

View File

@ -27,10 +27,10 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN groupadd cryptpad -g 4001
RUN useradd cryptpad -u 4001 -g 4001 -d /cryptpad
# Install wget for healthcheck
# Install git, rdfind, unzip and curl for install-onlyoffice.sh
# Install curl for healthcheck
# Install git, rdfind and unzip for install-onlyoffice.sh
RUN apt-get update && apt-get install --no-install-recommends -y \
wget git rdfind curl unzip ca-certificates && \
curl ca-certificates git rdfind unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
@ -57,7 +57,7 @@ VOLUME /cryptpad/datastore
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
HEALTHCHECK --interval=1m CMD curl -f http://localhost:3000/ || exit 1
# Ports
EXPOSE 3000 3001 3003