From af9180661764eff08bea5035c8505117113abb55 Mon Sep 17 00:00:00 2001 From: wol <1293433164@qq.com> Date: Sat, 4 Jul 2026 18:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20opencode/Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opencode/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opencode/Dockerfile b/opencode/Dockerfile index 4b12cd6..22aea51 100644 --- a/opencode/Dockerfile +++ b/opencode/Dockerfile @@ -7,7 +7,7 @@ SHELL ["/bin/bash", "-c"] RUN rm -rf /etc/apt/sources.list.d/* \ && echo "deb http://192.168.1.12:8081/repository/apt-ubuntu-proxy/ noble main restricted universe multiverse" > /etc/apt/sources.list -RUN apt-get update --allow-insecure-repositories && apt-get install -y \ +RUN apt-get update && apt-get install -y \ curl \ wget \ git \ @@ -43,9 +43,11 @@ RUN apt-get update --allow-insecure-repositories && apt-get install -y \ openjdk-21-jdk \ docker.io \ docker-compose-v2 \ - uv \ && rm -rf /var/lib/apt/lists/* +# 然后使用 pip 安装 uv(推荐使用 pip3,确保 Python 环境) +RUN pip3 install uv + RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ apt-get update && \ apt-get install -y nodejs && \