1....
2
3# use this for ubuntu 14.04 or 16.04
4RUN apt-get update -y && apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa
5
6RUN apt-get update -y && apt-get install -y \
7 python3.6 \
8 python3-pip \
9 curl \
10 git
11
12RUN pip3 install --upgrade pip
13
14...