Refactor to take into account some official Dockerfile Best Practices (https://docs.docker.com/articles/dockerfile_best-practices/).