docker 镜像增加 HEALTHCHECK

This commit is contained in:
wangliwen 2022-09-29 10:38:25 +08:00
parent bdac845f47
commit 92138b1668
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ VOLUME ["/usr/hisense"]
ADD application/$TAR_FILE $VERTICLE_HOME/
COPY simsun.ttc /usr/share/fonts/truetype/dejavu/
RUN cd /usr/share/fonts/truetype/dejavu && chmod 755 * && fc-cache -fv
HEALTHCHECK --interval=3m --timeout=3s --start-period=3m --retries=5 CMD curl --silent --fail 127.0.0.1:8888/renren-admin/census/center/v2/whole_amount || exit 1
WORKDIR $VERTICLE_HOME/renren-admin
ENTRYPOINT ["sh", "-c"]