From 371ce7bbb480b1e1cf60287325041b4d02b1e30d Mon Sep 17 00:00:00 2001 From: Joseph Ferguson Date: Thu, 12 Dec 2024 10:06:53 -0800 Subject: [PATCH] Add missing distutils to fix builds on some architectures Like arm32v7 and arm32v6 ``` File "/var/lib/ghost/versions/5.104.2/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' ``` --- 5/alpine/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5/alpine/Dockerfile b/5/alpine/Dockerfile index 793a55ac..6b315399 100644 --- a/5/alpine/Dockerfile +++ b/5/alpine/Dockerfile @@ -96,7 +96,7 @@ RUN set -eux; \ installCmd='gosu node yarn add "$package" --force'; \ if ! eval "$installCmd"; then \ # must be some non-amd64 architecture pre-built binaries aren't published for, so let's install some build deps and do-it-all-over-again - virtualPackages='g++ make python3'; \ + virtualPackages='g++ make python3 py3-setuptools'; \ case "$package" in \ # TODO sharp@*) virtualPackages="$virtualPackages pkgconf vips-dev"; \ sharp@*) echo >&2 "sorry: libvips 8.12.1 in Alpine 3.15 is not new enough (8.12.2+) for sharp 0.30 😞"; continue ;; \