From 8bc4891bca65b8a2a2dd023324896fc6333895e6 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 24 Jun 2026 11:02:39 +0000 Subject: [PATCH] =?UTF-8?q?fix(Dockerfile):=20=E9=A9=97=E8=AD=89=20Codex?= =?UTF-8?q?=20CLI=20=E5=AE=89=E8=A3=9D=E4=B8=A6=E6=8A=BD=E9=9B=A2=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E4=BE=86=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7044671..3c6c92e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ ENV CODEX_NON_INTERACTIVE=1 ENV CODEX_INSTALL_DIR=/usr/local/bin ENV CODEX_HOME=/root/.codex ENV CODEX_PLUGINS="jsc@doc jsc@code-review" +ENV CODEX_PLUGIN_MARKETPLACES="https://gitea.jsc.idv.tw/plugins/doc.git https://gitea.jsc.idv.tw/plugins/code-review.git" # 安裝必要的工具 RUN apk add --no-cache --no-check-certificate bash ca-certificates curl git jq util-linux @@ -15,11 +16,11 @@ RUN install_script="$(mktemp)" \ https://chatgpt.com/codex/install.sh \ -o "$install_script" \ && sh "$install_script" \ + && codex --version \ && rm -f "$install_script" # 安裝技能 -RUN codex plugin marketplace add https://gitea.jsc.idv.tw/plugins/doc.git \ - && codex plugin marketplace add https://gitea.jsc.idv.tw/plugins/code-review.git \ +RUN for marketplace in $CODEX_PLUGIN_MARKETPLACES; do codex plugin marketplace add "$marketplace"; done \ && for plugin in $CODEX_PLUGINS; do codex plugin add "$plugin"; done COPY entrypoint.sh /entrypoint.sh