Fix python install for recent alpine releases #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In recent alpine releases python version 2 must be specified as python2. If it is left as "python" as in the current Dockerfiles, then the following is the result:
Sending build context to Docker daemon 5.632kB
Step 1/7 : FROM multiarch/alpine:armhf-latest-stable
---> 1cf743ebe78e
Step 2/7 : RUN apk update && apk add python curl
---> Running in f53078db8735
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/armhf/APKINDEX.tar.gz
v3.12.1-47-g77e786238c [http://dl-cdn.alpinelinux.org/alpine/v3.12/main]
v3.12.1-51-g991a1b26b6 [http://dl-cdn.alpinelinux.org/alpine/v3.12/community]
OK: 11229 distinct packages available
ERROR: unsatisfiable constraints:
python (missing):
required by: world[python]
The command '/bin/sh -c apk update && apk add python curl' returned a non-zero code: 1