Fix bun install in Docker build

This commit is contained in:
cto-new[bot]
2026-02-10 14:29:44 +00:00
parent 44d561df5d
commit efe3460447
2 changed files with 520 additions and 4 deletions

View File

@@ -5,12 +5,14 @@ FROM ubuntu:24.04 AS builder
ARG PWSH_VERSION=7.4.6
ARG NODE_VERSION=20.18.1
ARG TTYD_VERSION=1.7.7
ARG BUN_VERSION=1.3.8
ARG BUN_VERSION=1.1.30
ENV DEBIAN_FRONTEND=noninteractive \
TERM=xterm-256color \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8
LC_ALL=C.UTF-8 \
BUN_INSTALL=/opt/bun \
PATH=/opt/bun/bin:$PATH
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
@@ -25,8 +27,9 @@ RUN apt-get update \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL -o /usr/local/bin/bun "https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/bun-linux-x64" \
&& chmod +x /usr/local/bin/bun
RUN curl -fsSL https://bun.sh/install | bash -s -- "bun-v${BUN_VERSION}" \
&& ln -sf /opt/bun/bin/bun /usr/local/bin/bun \
&& bun --version
RUN curl -fsSL -o /tmp/powershell.tar.gz \
"https://github.com/PowerShell/PowerShell/releases/download/v${PWSH_VERSION}/powershell-${PWSH_VERSION}-linux-x64.tar.gz" \