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 && \