Compare commits
1 Commits
13e943e32b
...
v0.0.6
| Author | SHA1 | Date | |
|---|---|---|---|
| bcd0766c95 |
@@ -1,7 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# 安裝必要的工具
|
||||
RUN apk add --no-cache --no-check-certificate bash curl coreutils
|
||||
RUN apk add --no-cache --no-check-certificate bash curl
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ while true; do
|
||||
break
|
||||
fi
|
||||
|
||||
# 休息 60 秒後重試
|
||||
/usr/bin/sleep 60
|
||||
# 使用 bash 內建等待 60 秒,避免 sleep 指令不存在
|
||||
read -r -t 60 _ < /dev/null || true
|
||||
done
|
||||
|
||||
# 將狀態碼輸出到環境變數
|
||||
|
||||
Reference in New Issue
Block a user