I have a website that I am working on using vanilla JS/HTML, I plan to eventually use docker to serve this site with nginx, and host this on some VM in the cloud.
Previously I have solved this by creating 2 different files,
prod_endpoint.js, and copying them over simply as
endpoint.js depending on an argument passed to my Dockerfile.
Is there a better way to manage test vs production endpoints given my setup?
Source: Docker Questions