During my studies on Docker I had to create containers several times.
Many times I used the second Dockfile:
FROM ubuntu: 16.10 MAINTAINER Ricardo Baltazar Chaves <firstname.lastname@example.org> RUN apt-get update RUN apt-get -y upgrade RUN apt-get install -y python3.6 python-pip
The problem with this is that the update and upgrade takes too long to execute.
So I decided to create a container already with both commands executed.
I will try to keep this container as up to date as possible.