From 3d85f13f265c7764599efadcd4a72f0e336f348b Mon Sep 17 00:00:00 2001 From: Huarch Date: Mon, 11 May 2026 18:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Dockerfile=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20bun-bin=20=E9=95=9C=E5=83=8F=E5=B9=B6?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=20bun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f1fd8e7..ac649ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +FROM oven/bun:1 AS bun-bin + FROM smanx/opencode:latest AS base USER root ARG UBUNTU_APT_MIRROR=mirrors.aliyun.com @@ -17,8 +19,6 @@ RUN sed -i "s|http://archive.ubuntu.com|https://${UBUNTU_APT_MIRROR}|g; s|http:/ python3 \ python3-venv && \ curl -LsSf https://astral.sh/uv/install.sh | sh && \ - curl -fsSL https://bun.sh/install | bash && \ - ln -s /root/.bun/bin/bun /usr/local/bin/bun && \ ln -s /root/.local/bin/uv /usr/local/bin/uv && \ ln -sf /usr/bin/python3 /usr/local/bin/python && \ mkdir -p /root/.config/pip && \ @@ -38,6 +38,8 @@ RUN sed -i "s|http://archive.ubuntu.com|https://${UBUNTU_APT_MIRROR}|g; s|http:/ pytest && \ rm -rf /var/lib/apt/lists/* +COPY --from=bun-bin /usr/local/bin/bun /usr/local/bin/bun + FROM base AS deps WORKDIR /app