I am trying to build my app with docker but I need to be able to target windowsservercore-ltsc2016 (Windows 2016), windowsservercore-1709 & windowsservercore-1803.
The only thing I can think of is a separate dockerfile per architecture but that doesn't mean it is easy to update if there are changes in future. Changes would have to be made in n number of files.
Additionally is there an automatic way for when you run say a docker-compose file to easily figure out that you are running 1803 version and to use that or is it better to again create a docker-compose file for the architecture your using.