From bc04e5760c22b31c0e4d6e306ca8ac0daebd0056 Mon Sep 17 00:00:00 2001 From: xinian Date: Sat, 28 Mar 2026 14:17:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ide/Dockerfile | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/.ide/Dockerfile b/.ide/Dockerfile index 641c4e47c..9aab228bf 100644 --- a/.ide/Dockerfile +++ b/.ide/Dockerfile @@ -30,42 +30,7 @@ RUN code-server --install-extension dbaeumer.vscode-eslint &&\ code-server --install-extension PKief.material-icon-theme &&\ code-server --install-extension tencent-cloud.coding-copilot &&\ echo done -# 安装 Node.js 22(修复旧版node无法安装codex的问题) -RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg && \ - echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ - apt update && \ - apt install -y nodejs && \ - npm config set registry https://registry.npmmirror.com/ && \ - npm install -g @openai/codex && \ - rm -rf /var/lib/apt/lists/* - -# 配置 Codex -RUN mkdir -p /root/.codex - -# 写入 config.toml -RUN cat > /root/.codex/config.toml <<'EOF' -model_provider = "OpenAI" -model = "gpt-5.4" -model_reasoning_effort = "high" -disable_response_storage = true - -[model_providers.OpenAI] -name = "OpenAI" -base_url = "https://api.jucode.cn/v1" -wire_api = "responses" -requires_openai_auth = true -EOF - -# 写入 auth.json -RUN cat > /root/.codex/auth.json <<'EOF' -{ - "auth_mode": "apikey", - "OPENAI_API_KEY": "sk-E0ZZIFNnD0RkhMC9pT2AGMutz9vNy2VLNrgyyobT5voa81pQ" -} -EOF - -# 权限配置 -RUN chmod 600 /root/.codex/auth.json + # install Go Tools ENV GOPATH /root/go ENV PATH="${PATH}:${GOPATH}/bin"