diff --git a/dockerhub/alpine/Dockerfile b/dockerhub/alpine/Dockerfile index 4051cf17d9..282c8d6187 100644 --- a/dockerhub/alpine/Dockerfile +++ b/dockerhub/alpine/Dockerfile @@ -14,6 +14,7 @@ ARG GLIBC_VERSION=2.34-r0 # https://github.com/oven-sh/bun/issues/5545#issuecomment-1722461083 ARG GLIBC_VERSION_AARCH64=2.26-r1 +# We add python3 for node-gyp, see https://github.com/oven-sh/bun/issues/9807 RUN apk --no-cache add \ ca-certificates \ curl \ @@ -21,6 +22,7 @@ RUN apk --no-cache add \ gpg \ gpg-agent \ unzip \ + python3 \ && arch="$(apk --print-arch)" \ && case "${arch##*-}" in \ x86_64) build="x64-baseline";; \ diff --git a/dockerhub/debian-slim/Dockerfile b/dockerhub/debian-slim/Dockerfile index babe2d7a57..fd6fd46e63 100644 --- a/dockerhub/debian-slim/Dockerfile +++ b/dockerhub/debian-slim/Dockerfile @@ -3,6 +3,7 @@ FROM debian:bullseye-slim AS build # https://github.com/oven-sh/bun/releases ARG BUN_VERSION=latest +# We add python3 for node-gyp, see https://github.com/oven-sh/bun/issues/9807 RUN apt-get update -qq \ && apt-get install -qq --no-install-recommends \ ca-certificates \ @@ -11,6 +12,7 @@ RUN apt-get update -qq \ gpg \ gpg-agent \ unzip \ + python3 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && arch="$(dpkg --print-architecture)" \ diff --git a/dockerhub/debian/Dockerfile b/dockerhub/debian/Dockerfile index f8d147cc90..edf9167b74 100644 --- a/dockerhub/debian/Dockerfile +++ b/dockerhub/debian/Dockerfile @@ -3,6 +3,7 @@ FROM debian:bullseye-slim AS build # https://github.com/oven-sh/bun/releases ARG BUN_VERSION=latest +# We add python3 for node-gyp, see https://github.com/oven-sh/bun/issues/9807 RUN apt-get update -qq \ && apt-get install -qq --no-install-recommends \ ca-certificates \ @@ -11,6 +12,7 @@ RUN apt-get update -qq \ gpg \ gpg-agent \ unzip \ + python3 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && arch="$(dpkg --print-architecture)" \