Help with Docker build on MacOS

Hi @vule :slight_smile:

I made your topic public, it’s best that everyone can see your post (I’m not the only one who can answer to you!)

Why do you build on your Mac ? I’m never building on mine, just using Github builds :smiley:

See this tutorial :

If you really want to build on Mac, you need to make sure that you are doing cross compilation correctly.

Do you confirm your are building your Docker image with buildx ? not docker build ?

Make sure the node_modules from your Mac are not copied inside the container.

What’s happening here is that your node_modules from your Mac are copied inside the container and it can’t work because those are compiled for MacOS and inside the container it’s linux :slight_smile:

ChatGPT is good help with these kind of errors btw ^^

1 Like