更新 opencode/Dockerfile
This commit is contained in:
+4
-2
@@ -47,8 +47,10 @@ RUN apt-get update && apt-get install -y \
|
||||
docker-compose-v2 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 然后使用 pip 安装 uv(推荐使用 pip3,确保 Python 环境)
|
||||
RUN pip3 install uv
|
||||
# 使用官方安装脚本安装 uv(放入 ~/.cargo/bin)
|
||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
# 将 uv 所在目录加入 PATH
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
||||
apt-get update && \
|
||||
|
||||
Reference in New Issue
Block a user