Skip to content

Commit

Permalink
Add missing distutils to fix builds on some architectures
Browse files Browse the repository at this point in the history
Like arm32v7 and arm32v6

```
  File "/var/lib/ghost/versions/5.104.2/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
    from distutils.version import StrictVersion
ModuleNotFoundError: No module named 'distutils'
```
  • Loading branch information
yosifkit committed Dec 12, 2024
1 parent 980d114 commit 371ce7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 5/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;; \
Expand Down

0 comments on commit 371ce7b

Please sign in to comment.