2 Commits

Author SHA1 Message Date
71938b5b42 feat: 使用 sleep 的絕對路徑 2026-03-25 22:19:30 +08:00
04eec23b2b test: 安裝 coreutils 才能使用 sleep 指令 2026-03-25 22:17:04 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine:latest FROM alpine:latest
# 安裝必要的工具 # 安裝必要的工具
RUN apk add --no-cache --no-check-certificate bash curl sleep RUN apk add --no-cache --no-check-certificate bash curl coreutils
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh

View File

@@ -29,7 +29,7 @@ while true; do
fi fi
# 休息 60 秒後重試 # 休息 60 秒後重試
sleep 60 /usr/bin/sleep 60
done done
# 將狀態碼輸出到環境變數 # 將狀態碼輸出到環境變數