Refactoring creation of Dockerfile with twig generation