Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Mac Os Big Sur - M1 chip docker install error #572

Open
JohanIclicks opened this issue Jun 11, 2021 · 1 comment
Open

Mac Os Big Sur - M1 chip docker install error #572

JohanIclicks opened this issue Jun 11, 2021 · 1 comment

Comments

@JohanIclicks
Copy link

When running the following command:
docker-compose -f docker-compose.elastic7.yml -f docker-compose.nodejs.yml up

I get the following error:
#10 36.21 Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) #10 36.21 Arguments: #10 36.21 Directory: /var/www/node_modules/sharp #10 36.21 Output: #10 36.21 info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linuxmusl-arm64v8.tar.gz #10 36.21 ERR! sharp Prebuilt libvips binaries are not yet available for linuxmusl-arm64v8

@Braincoke
Copy link

I managed to work around this issue by adding --platform=linux/amd64 in the API Dockerfile.

FROM --platform=linux/amd64 node:10-alpine

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

No branches or pull requests

2 participants