fix(Codex CLI): 改用 flock 管理 auth 鎖定

This commit is contained in:
2026-06-24 10:57:12 +00:00
parent 874ff3d571
commit 8e3166681c
2 changed files with 15 additions and 23 deletions
+5 -5
View File
@@ -1,12 +1,13 @@
FROM alpine:latest
# 安裝必要的工具
RUN apk add --no-cache --no-check-certificate bash ca-certificates curl git jq
# 設定安裝用的環境變數
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"
# 安裝必要的工具
RUN apk add --no-cache --no-check-certificate bash ca-certificates curl git jq util-linux
# 安裝 Codex CLI 工具
RUN install_script="$(mktemp)" \
@@ -18,9 +19,8 @@ RUN install_script="$(mktemp)" \
# 安裝技能
RUN codex plugin marketplace add https://gitea.jsc.idv.tw/plugins/doc.git \
&& codex plugin add jsc@doc \
&& codex plugin marketplace add https://gitea.jsc.idv.tw/plugins/code-review.git \
&& codex plugin add jsc@code-review
&& for plugin in $CODEX_PLUGINS; do codex plugin add "$plugin"; done
COPY entrypoint.sh /entrypoint.sh