diff --git a/Dockerfile b/Dockerfile index 3782932..913fb33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,13 +13,13 @@ RUN apk add --no-cache --no-check-certificate bash ca-certificates curl git jq u # 安裝 Codex CLI 工具 RUN install_script="$(mktemp)" \ + && trap 'rm -f "$install_script"' EXIT \ && curl -fsSL --retry 3 --retry-delay 2 --max-time 120 \ https://chatgpt.com/codex/install.sh \ -o "$install_script" \ && echo "${CODEX_INSTALL_SHA256} ${install_script}" | sha256sum -c - \ && sh "$install_script" \ - && codex --version \ - && rm -f "$install_script" + && codex --version # 安裝技能 RUN codex plugin marketplace add "https://gitea.jsc.idv.tw/plugins/doc.git" --ref "$CODEX_DOC_MARKETPLACE_REF" \