'What is the best practice for creating a Dockerfile for different development environments in Jenkins?

I should create different development environments for developers in Docker. The plan is to do a Jenkins job that will make new Dockerfiles for each new environment. After that, Jenkins would make a build of that Dockerfile and make the image on the Docker hub available to developers.

I don't know how good this approach is and if there is a better solution. Thanks for the help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source