I added docker support to my project using VS2017 (right click the project > Add > Docker Support) which created a Dockerfile for me and updated launchsettings.json.
I have the following launchsettings.json
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://localhost:{ServicePort}",
"environmentVariables": {
"TEST": "Test value"
}
}
However when I do a docker inspect I do not see the environment variable on the container.
As I do not have access to a docker-compose file what is the suggested way to inject environment variables when debugging?