I have created an docker image of a website from a build. This image is a website with a nodejs webapp and a .net core website. Both have configs (config.json and web.config respectively).
I have packaged up the image to include other environment configs so I can use an image for a particular environment (QA, Stage, Production, etc) but with a rename of web.config.ENVIRONMENT to web.config and Config.JSON.ENVIRONMENT to Config.JSON.
How can I rename a file on a docker image or rename both of these files? A rename works or a copy config.json.QA to config.json works as well.
Do I need to mount the image, make the config file changes, then start the image in a container?
thanks in advance.