Dockerfile: do some optimizations to reduce its size
Let's combine some steps and do some known tricks in order
to try to reduce the size of the image, as it is too big.
Those changes reduce the image size by ~10%, from 1.04 GB to
Signed-off-by: Mauro Carvalho Chehab <firstname.lastname@example.org>