We have an application that consist of 20 applications/containers and growing. Where:
- Use Jenkins for CI/CD
- .Net Applications
- We don’t use Docker-compose for some limitations and how the pipeline is set
The 20 dockerfile for the containers uses .Net 5 as base image, however the issue when we will update to .Net 6 (or patched versions of .Net 5) then we will have to manually update each file which sometimes is hard and we might forget some.
One thing we thought of is to have the base image name in an external file (base_image.txt) and when we build the image it then goes to the external file and read the image name from there. So, in this case we have to make the change in one place.
Any idea how to achieve this? or if there are different approaches (without the use of docker-compose)?