getting following error when building docker image
[jenkins@localhost jenkins-ansible]$ docker build -t ansible:latest .
Sending build context to Docker daemon 3.072kB
Step 1/4 : FROM jenkins/jenkins
---> 72d5c909f166
Step 2/4 : USER root
---> Running in 326240db4939
Removing intermediate container 326240db4939
---> e53b7e6cd21b
Step 3/4 : RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && pip install ansible --upgrade
---> Running in ab53a0bfd916
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1863k 100 1863k 0 0 7454k 0 --:--:-- --:--:-- --:--:-- 7454k
/bin/sh: 1: python: not found
The command '/bin/sh -c curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && pip install ansible --upgrade' returned a non-zero code: 127
docker file is
FROM jenkins/jenkins
USER root
RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python get-pip.py && \
pip install ansible --upgrade
USER jenkins
```