2 Commits

Author SHA1 Message Date
3bb33d6240 feat: 等待 60 秒之後重試 2026-03-25 22:13:19 +08:00
fb777eec31 feat: 安裝 sleep 套件 2026-03-25 22:11:56 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine:latest 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 COPY entrypoint.sh /entrypoint.sh

View File

@@ -28,8 +28,8 @@ while true; do
break break
fi fi
# 休息 1 秒後重試 # 休息 60 秒後重試
sleep 1 sleep 60
done done
# 將狀態碼輸出到環境變數 # 將狀態碼輸出到環境變數