Skip to content

Conversation

JohnnyMarnell
Copy link

@JohnnyMarnell JohnnyMarnell commented Dec 29, 2021

Thanks for these great repos 🙏🏻

Had a bit of trouble getting this to run on my Macs, and I think adding Docker support can help to reduce variables with errors and troubleshooting (e.g. node-gyp failures, differing dependency versions, differing architectures). Plus this could help CI/CD, or simple case of not wanting to install Node.JS dependencies and ffmpeg itself.

Also discovered sharp dependency needed to be upgraded (breaking on multiple versions of node + arch's), see here

Tested with Docker v20.10.11, OS X Monterey, M1 / arm64, and Docker v19.03.13, OS X Catalina, Intel

@JohnnyMarnell JohnnyMarnell changed the title Add Docker support Add Docker support and upgrade failing sharp Dec 29, 2021
@JohnnyMarnell
Copy link
Author

@transitive-bullshit any thoughts?

@gabekus
Copy link

gabekus commented Mar 28, 2025

I built sharp by downgrading to Python 3.8 and setting this in package.json (I use pnpm on an M3 Macbook Pro):

 "pnpm": {
    "supportedArchitectures": {
      "os": ["darwin"],
      "cpu": ["arm64"]
    }
  }

Then I did pnpm rebuild sharp. Apparently it relies on distutils which was removed in Python >=3.10, so I used pyenv to switch to 3.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants