From bcd0766c95a57f66bcc13487eecb9dc215a4bc9e Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 25 Mar 2026 22:21:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=BF=E7=94=A8=20bash=20=E9=A0=90?= =?UTF-8?q?=E8=A8=AD=E7=9A=84=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ccb7156..5625030 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh index 7e3b8a5..50ab077 100644 --- a/entrypoint.sh +++ b/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 # 將狀態碼輸出到環境變數 -- 2.48.1