@konrad wrote:
Hey,
I would like to run my Ember app in different environments/stages but with the same docker image. Until now I just compiled the app with the
-prod
flag and copieddist
into my nginx image, but now I would like to use this image for production and staging and I need different configurations.I am playing around with installing Ember CLI into my docker container so right now I am able to build the app with the
--environment
flag depending on an ENV variable upon container start-up and afterwards thedist
directory is copied to the nginx root. This makes things more flexible but the container size exploded and the build itself is more complicated and thus possibly more error-prone.I am wondering what is the preferred way to do that? In theory, the only thing that changes is the configuration in the index.html, so maybe I should pre-build all possible environments and copy the index.html(s) to the container?
Posts: 3
Participants: 2