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

Open
#382 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, node.js

Research direction

The linked issue #124 provides the starting context; inspect the repository's Dockerfile and its FROM node:alpine line. Reproduce the Docker build on an M1 host, then verify that the selected platform lets the yarn install step complete successfully.

Written by the indexing model from the issue text.

Description

https://github.com/docker/getting-started/issues/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

Dominant language
JavaScript
Stars
3.1k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/getting-started

All issues in docker/getting-started

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.