ASPNETCORE_ENVIRONMENT in Docker

前端 未结 5 1052
温柔的废话
温柔的废话 2021-01-17 07:35

i have problems setting the ASPNETCORE_ENVIRONMENT variable running my project in a docker container. The problem is that the value is alwa

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-17 08:01

    It works for me by configuring ASPNETCORE_ENVIRONMENT with command dotnet CoreDocker.dll --environment="X"

    Try to change dockerfile like below:

    ENTRYPOINT ["dotnet", "CoreDocker.dll", "--environment=X"]

提交回复
热议问题