Use multistage build
Docker allow to build an image in multistage, declaring steps to build a component and other to only host the built component.
This approach allow to have a cleaner Dockerfile, avoiding a HUGE RUN
command adding and removing packages.