Docker Healthcheck (#994)
* Implemented healthchecks into the docker files * Added healthcheck entry in Dockerfile
This commit is contained in:
parent
e4d1d9c97d
commit
62f0bf04ee
2 changed files with 11 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ COPY --from=copytask /files/wwwroot /kavita/wwwroot
|
|||
|
||||
#Installs program dependencies
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y libicu-dev libssl1.1 libgdiplus \
|
||||
&& apt-get install -y libicu-dev libssl1.1 libgdiplus curl\
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
|
@ -29,5 +29,7 @@ EXPOSE 5000
|
|||
|
||||
WORKDIR /kavita
|
||||
|
||||
HEALTHCHECK --interval=300s --timeout=15 --start-period=30s --retries=3 CMD curl --fail http://localhost:5000 || exit 1
|
||||
|
||||
ENTRYPOINT [ "/bin/bash" ]
|
||||
CMD ["/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue