FROM golang:1.13-alpine
RUN apk add -U python py-pip python-dev musl-dev gcc git bash
The bare 'python' package has been deprecated, now you want the explicit python2 or python3 / py3-pip.
In switching it to python3, I found the next issue with pre-commit:
Collecting pre-commit
[...]
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.1-py2.py3-none-any.whl (335 kB)
Using legacy setup.py install for pyyaml, since package 'wheel' is not installed.
Installing collected packages: cfgv, identify, filelock, distlib, virtualenv, pyyaml, nodeenv, pre-commit
Attempting uninstall: distlib
Found existing installation: distlib 0.3.0
ERROR: Cannot uninstall 'distlib'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Thank you for reporting this problem! I used your fixes. I think --ignore-installed is fine in this case since it is in a container and we don't need to uninstall anything.
Dockerfile.lint says:
The bare 'python' package has been deprecated, now you want the explicit
python2
orpython3
/py3-pip
.In switching it to
python3
, I found the next issue withpre-commit
:I 'fixed' this with a