vuestorefront / vue-storefront-api

Vue.js storefront for Magento2 (and not only) - data backend
https://www.vuestorefront.io
MIT License
348 stars 338 forks source link

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

Open JohanIclicks opened 3 years ago

JohanIclicks commented 3 years ago

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 commented 3 years ago

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

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