sdk-container-builds icon indicating copy to clipboard operation
sdk-container-builds copied to clipboard

Runtime-less base images should set environment variables like runtime-ful images

Open baronfel opened this issue 2 years ago • 0 comments

When choosing any self-contained image, we should set the inferred environment variables to match what happens in the runtime images to help ensure consistent user experiences. See the windows runtime-less image and linux runtimeless image (note for linux the separate dotnet/runtime image sets the runtime version, windows does it all in one because there's no runtime-deps equivalent).

    # Configure web servers to bind to port 8080 when present
    ASPNETCORE_HTTP_PORTS=8080
    # Enable detection of running in a container
    DOTNET_RUNNING_IN_CONTAINER=true
    # .NET Runtime version
    DOTNET_VERSION=8.0.0-preview.2.23128.3

baronfel avatar Apr 07 '23 19:04 baronfel