When executing "RUN apk add --no-cache python make g++" then I am running into error "unable to select packages: python (no such package): required by: world[python]". I am using Docker image "node:16-alpine".
I found the solution. If you want exactly python2, you need to use the alpine version 3.15. The latest versions only supports python3. So basically change "node:16-alpine" to "node:16-alpine3.15"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When executing "RUN apk add --no-cache python make g++" then I am running into error "unable to select packages: python (no such package): required by: world[python]". I am using Docker image "node:16-alpine".
Use python3 instead.
I used python2 as I saw it was explicitly looking for python2
Have you found the solution?
I found the solution. If you want exactly python2, you need to use the alpine version 3.15. The latest versions only supports python3. So basically change "node:16-alpine" to "node:16-alpine3.15"