Error: 'darwin-x64' binaries cannot be used on the 'linuxmusl-x64' platform. #11084
Labels
status: needs more info
Needs triaging and reproducible examples or more information to be resolved
type: question or discussion
Issue discussing or asking a question about Gatsby
Description
I am trying to dockerize my gatsby app containing
gatsby-transformer-sharp v2.1.3
, my Dockerfile is as follow:after running
docker-compose up
(I have a docker-compose file too)which runsgatsby build
command, I get the following errorError: 'darwin-x64' binaries cannot be used on the 'linuxmusl-x64' platform. P lease remove the 'node_modules/sharp/vendor' directoryand run 'npm install'.
Steps to reproduce
Dockerize a gatsby app containing
gatsby-transformer-sharp
with the configuration I sharedExpected result
the app should be built successfully
Actual result
Error: 'darwin-x64' binaries cannot be used on the 'linuxmusl-x64' platform. P lease remove the 'node_modules/sharp/vendor' directory and run 'npm install'.
Environment
The text was updated successfully, but these errors were encountered: