ASPNETCORE_ENVIRONMENT in Docker
问题 i have problems setting the ASPNETCORE_ENVIRONMENT variable running my project in a docker container . The problem is that the value is always set/overwritten to "Development" . I have tried setting the environment variable in my Dockerfile using ENV ASPNETCORE_ENVIRONMENT test also tried setting the environment variable in my docker-compose file using environment: - ASPNETCORE_ENVIRONMENT=test When I set any other environment variable it works , for example: environment: - OTHER_TEST