-
-
Notifications
You must be signed in to change notification settings - Fork 23.2k
Description
Describe the bug
A clear and concise description of what the bug is.
When running docker build on macOS M1, there is an error in node-gyp during the yarn install step. The error is caused by missing dependencies.
To Reproduce
Steps to reproduce the behavior:
- Execute
docker buildcommand. - Observe the error during the
yarn installstep.
Expected behavior
A clear and concise description of what you expected to happen.
The yarn install step should complete successfully without any errors.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup
- OS: macOS M1
Additional context
Add any other context about the problem here.
The issue can be resolved by modifying the Dockerfile as follows:
Change RUN apk add --update libc6-compat to RUN apk add --update libc6-compat python3 make g++.
This modification ensures that the necessary dependencies are installed, allowing node-gyp to run successfully during the yarn install step.
Please note that the issue occurs specifically on macOS M1, and the provided solution addresses the missing dependencies.