Docker Community Forums

Share and learn in the Docker community.

How does one set the active environment in a Dockerfile?

I have a Docker container running an ASP Core Web Api solution. When the container runs locally it somehow chooses “development” as the active environment. How can I specify in the Dockerfile that Docker should choose “local” so that appsettings.Local.json could be chosen for the correct connection string?