Fix bun install in Docker build
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user