docker/getting-started

In reply to: docker build command fails on yarn install step with error "gyp ERR! find Python" #124

AlexisPell opened this issue · 0 comments

#124

Im sorry if smth wrong, this is my first issue.

I didnt see the easiest way to solve the problem here.

AR:

  • Mac with chip M1
  • node:alpine
  • Docker fail trying to install python, g++, etc

So, actually, instead of adding Python to you dockerfile (whick works) or choosing raw node image instead of alpine (which also works)

You may simply specify the running platform for docker with alpine

FROM --platform=linux/amd64 node:alpine