diff --git a/Dockerfile b/Dockerfile index 5625030..8e2c908 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest # 安裝必要的工具 -RUN apk add --no-cache --no-check-certificate bash curl +RUN apk add --no-cache --no-check-certificate bash curl sleep COPY entrypoint.sh /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index f4214f2..d458a3a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,8 +28,8 @@ while true; do break fi - # 休息 1 秒後重試 - sleep 1 + # 休息 60 秒後重試 + sleep 60 done # 將狀態碼輸出到環境變數