處理 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_INSTALL_DIR=/usr/local/bin
|
||||||
ENV CODEX_HOME=/root/.codex
|
ENV CODEX_HOME=/root/.codex
|
||||||
ENV CODEX_PLUGINS="jsc@doc jsc@code-review"
|
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
|
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 \
|
https://chatgpt.com/codex/install.sh \
|
||||||
-o "$install_script" \
|
-o "$install_script" \
|
||||||
&& sh "$install_script" \
|
&& sh "$install_script" \
|
||||||
|
&& codex --version \
|
||||||
&& rm -f "$install_script"
|
&& rm -f "$install_script"
|
||||||
|
|
||||||
# 安裝技能
|
# 安裝技能
|
||||||
RUN codex plugin marketplace add https://gitea.jsc.idv.tw/plugins/doc.git \
|
RUN for marketplace in $CODEX_PLUGIN_MARKETPLACES; do codex plugin marketplace add "$marketplace"; done \
|
||||||
&& codex plugin marketplace add https://gitea.jsc.idv.tw/plugins/code-review.git \
|
|
||||||
&& for plugin in $CODEX_PLUGINS; do codex plugin add "$plugin"; done
|
&& for plugin in $CODEX_PLUGINS; do codex plugin add "$plugin"; done
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user