處理 AI review findings 並改寫 Node.js entrypoint #2
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user