From 859ebb32066cde129f54af014b2018fde3c63254 Mon Sep 17 00:00:00 2001 From: liupeng Date: Wed, 6 Mar 2024 10:16:58 +0800 Subject: [PATCH] scratch remove healthcheck --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ff0e88..12d5790 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,10 +19,9 @@ LABEL MAINTAINER='LIU Peng' WORKDIR / # COPY --from=build-client /bin/cli /cli COPY ./cli /cli - -# 健康检测 -ADD ./hc.sh /root/healthcheck.sh -HEALTHCHECK --start-period=60s --interval=15s --timeout=5s --retries=3 CMD /bin/ash /root/healthcheck.sh +# 健康检测 scratch 镜像没有其它shell指令,所以无法进行健康检测 +# ADD ./hc.sh /root/healthcheck.sh +# HEALTHCHECK --start-period=60s --interval=15s --timeout=5s --retries=3 CMD /bin/ash /root/healthcheck.sh # 时区处理(方法一:需要提前准备下两条,scratch和alpine都可以使用) # tar cfz zoneinfo.tar.gz /usr/share/zoneinfo