mirror of https://github.com/xwiki-labs/cryptpad
Use curl for Docker HEALTHCHECK
This commit is contained in:
parent
5119901fb8
commit
b058f76b45
|
@ -27,10 +27,10 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN groupadd cryptpad -g 4001
|
RUN groupadd cryptpad -g 4001
|
||||||
RUN useradd cryptpad -u 4001 -g 4001 -d /cryptpad
|
RUN useradd cryptpad -u 4001 -g 4001 -d /cryptpad
|
||||||
|
|
||||||
# Install wget for healthcheck
|
# Install curl for healthcheck
|
||||||
# Install git, rdfind, unzip and curl for install-onlyoffice.sh
|
# Install git, rdfind and unzip for install-onlyoffice.sh
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
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 && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ VOLUME /cryptpad/datastore
|
||||||
ENTRYPOINT ["/bin/bash", "/cryptpad/docker-entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/cryptpad/docker-entrypoint.sh"]
|
||||||
|
|
||||||
# Healthcheck
|
# 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
|
# Ports
|
||||||
EXPOSE 3000 3001 3003
|
EXPOSE 3000 3001 3003
|
||||||
|
|
Loading…
Reference in New Issue