cabot
cabot copied to clipboard
Docker Images build fails
When build the freshly cloned repo docker-compose build
fails with:
Collecting pip
Downloading https://files.pythonhosted.org/packages/52/e1/06c018197d8151383f66ebf6979d951995cf495629fc54149491f5d157d0/pip-21.2.4.tar.gz (1.6MB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-IBoPUJ/pip/setup.py", line 7
def read(rel_path: str) -> str:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-IBoPUJ/pip/
You are using pip version 8.1.2, however version 21.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c pip install --upgrade pip' returned a non-zero code: 1
ERROR: Service 'web' failed to build
Updating the base image in the dockerfile can fix this.
Confirming as a bug, image node:4-alpine
is running Python 2.7.14 which does not understand type annotations used by Python >=3 and pip >=21.