aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-10-31 17:25:13 -0700
committerGravatar GitHub <noreply@github.com> 2023-10-31 17:25:13 -0700
commit53d1acb0a5655deb69f54bd6f8222a6f4dd27633 (patch)
tree1b28f511d2e1723d4b279b3062ca7cc0c140f092 /Dockerfile
parent23d2c4c8e49a1fdfdf976fb5647b3796450f66b5 (diff)
downloadbun-53d1acb0a5655deb69f54bd6f8222a6f4dd27633.tar.gz
bun-53d1acb0a5655deb69f54bd6f8222a6f4dd27633.tar.zst
bun-53d1acb0a5655deb69f54bd6f8222a6f4dd27633.zip
chore: build system improvements (#6811)
* build system improvements * public the secret download link * typo * i think i fixed it * fix ci * un-bump the cmake version
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 53feecde9..80a0aa6cb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,6 +16,7 @@ ARG BUILD_MACHINE_ARCH=x86_64
ARG BUILDARCH=amd64
ARG TRIPLET=${ARCH}-linux-gnu
ARG GIT_SHA="unknown"
+ARG BUN_DOWNLOAD_URL_BASE="https://pub-5e11e972747a44bf9aaf9394f185a982.r2.dev/releases/latest"
ARG BUN_VERSION="1.0.7"
ARG NODE_VERSION="20"
@@ -31,6 +32,7 @@ ARG AWS_SECRET_ACCESS_KEY
FROM bitnami/minideb:bullseye as bun-base
+ARG BUN_DOWNLOAD_URL_BASE
ARG DEBIAN_FRONTEND
ARG BUN_VERSION
ARG NODE_VERSION
@@ -110,7 +112,7 @@ RUN apt-get update -y \
arm64) variant="aarch64";; \
*) echo "error: unsupported architecture: $arch"; exit 1 ;; \
esac \
- && wget "https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/bun-linux-${variant}.zip" \
+ && wget "${BUN_DOWNLOAD_URL_BASE}/bun-linux-${variant}.zip" \
&& unzip bun-linux-${variant}.zip \
&& mv bun-linux-${variant}/bun /usr/bin/bun \
&& ln -s /usr/bin/bun /usr/bin/bunx \