Skip to content

Consider moving ASPNETCORE_HTTP_PORTS env variable from runtime-deps Dockerfile to aspnet Dockerfile #7157

@Varorbc

Description

@Varorbc

Describe the Problem

The ASPNETCORE_HTTP_PORTS environment variable is currently defined in the runtime-deps Dockerfile (e.g., src/runtime-deps/11.0/alpine3.23/amd64/Dockerfile). This is not ideal because consumers of the runtime-deps image may not be using ASP.NET Core, so including this environment variable in a base image can be confusing or misleading.

Describe the Solution

It would be more appropriate to define ASPNETCORE_HTTP_PORTS only in Dockerfiles intended specifically for ASP.NET or ASP.NET Core. This will improve the clarity and generality of the runtime-deps image by not including env variables that don't apply to all consumers.

Additional Context

Reference: src/runtime-deps/11.0/alpine3.23/amd64/Dockerfile#L7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions