Demo – Creating a new Docker Image _>Docker training for absolute beginner

I am following the instructions by mumshad GitHub - mmumshad/simple-webapp-flask: Simple Flask based web application But this does not work

[3/5] RUN apt-get install -y python python-pip:
0.665 Reading package lists…
1.369 Building dependency tree…
1.525 Reading state information…
1.534 Package python is not available, but is referred to by another package.
1.534 This may mean that the package is missing, has been obsoleted, or
1.534 is only available from another source
1.534 However the following packages replace it:
1.534 2to3 python2-minimal python2 dh-python python-is-python3
1.534
1.536 E: Package ‘python’ has no installation candidate

Dockerfile:4

2 |
3 | RUN apt-get update
4 | >>> RUN apt-get install -y python python-pip
5 | RUN pip install flask

6
ERROR: failed to solve: process “/bin/sh -c apt-get install -y python python-pip” did not complete successfully: exit code: 100

How to fix these errors ?

It says that it cannot find package named ‘python’. Ubuntu 16 likely had python v3 in the package named python3.
Additionally, I should point out that Ubuntu 16.04 had reached its End Of Life a while ago and is not supported anymore.