scratch remove healthcheck
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
liupeng 2024-03-06 10:16:58 +08:00
parent 232fe8fc22
commit 859ebb3206

View File

@ -19,10 +19,9 @@ LABEL MAINTAINER='LIU Peng<liupeng@daymele.com>'
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