mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Remove python3 from slim and alpine Dockerfiles to match Node.js
This commit is contained in:
@@ -14,7 +14,6 @@ ARG GLIBC_VERSION=2.34-r0
|
|||||||
# https://github.com/oven-sh/bun/issues/5545#issuecomment-1722461083
|
# https://github.com/oven-sh/bun/issues/5545#issuecomment-1722461083
|
||||||
ARG GLIBC_VERSION_AARCH64=2.26-r1
|
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 \
|
RUN apk --no-cache add \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
@@ -22,7 +21,6 @@ RUN apk --no-cache add \
|
|||||||
gpg \
|
gpg \
|
||||||
gpg-agent \
|
gpg-agent \
|
||||||
unzip \
|
unzip \
|
||||||
python3 \
|
|
||||||
&& arch="$(apk --print-arch)" \
|
&& arch="$(apk --print-arch)" \
|
||||||
&& case "${arch##*-}" in \
|
&& case "${arch##*-}" in \
|
||||||
x86_64) build="x64-baseline";; \
|
x86_64) build="x64-baseline";; \
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ FROM debian:bullseye-slim AS build
|
|||||||
# https://github.com/oven-sh/bun/releases
|
# https://github.com/oven-sh/bun/releases
|
||||||
ARG BUN_VERSION=latest
|
ARG BUN_VERSION=latest
|
||||||
|
|
||||||
# We add python3 for node-gyp, see https://github.com/oven-sh/bun/issues/9807
|
|
||||||
RUN apt-get update -qq \
|
RUN apt-get update -qq \
|
||||||
&& apt-get install -qq --no-install-recommends \
|
&& apt-get install -qq --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -12,7 +11,6 @@ RUN apt-get update -qq \
|
|||||||
gpg \
|
gpg \
|
||||||
gpg-agent \
|
gpg-agent \
|
||||||
unzip \
|
unzip \
|
||||||
python3 \
|
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& arch="$(dpkg --print-architecture)" \
|
&& arch="$(dpkg --print-architecture)" \
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ FROM debian:bullseye-slim AS build
|
|||||||
# https://github.com/oven-sh/bun/releases
|
# https://github.com/oven-sh/bun/releases
|
||||||
ARG BUN_VERSION=latest
|
ARG BUN_VERSION=latest
|
||||||
|
|
||||||
# We add python3 for node-gyp, see https://github.com/oven-sh/bun/issues/9807
|
# Node.js includes python3 for node-gyp, see https://github.com/oven-sh/bun/issues/9807
|
||||||
|
# Though, not on slim and alpine images.
|
||||||
RUN apt-get update -qq \
|
RUN apt-get update -qq \
|
||||||
&& apt-get install -qq --no-install-recommends \
|
&& apt-get install -qq --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|||||||
Reference in New Issue
Block a user