i have problems setting the ASPNETCORE_ENVIRONMENT variable running my project in a docker container. The problem is that the value is alwa
It works for me by configuring ASPNETCORE_ENVIRONMENT with command dotnet CoreDocker.dll --environment="X"
ASPNETCORE_ENVIRONMENT
dotnet CoreDocker.dll --environment="X"
Try to change dockerfile like below:
dockerfile
ENTRYPOINT ["dotnet", "CoreDocker.dll", "--environment=X"]